Ok firstly i'm not a PHP expert, i'm just writing down a few codes i know that may help you in somepoints of your websites.
The echo bit is what will show in your browser.PHP Code:
<?php
echo "Hello Habbox!";
?>
Well know were using a Variable we can tell this by the $ so it's more a less the same.PHP Code:
<?php
if( $lang == 1 )
{
echo "Hello Habbox!";
}
?>
IP Addresses.
Firstly we create a .txt file named whatever name you wantPHP Code:
<?
$log_file = "ipsthathavebeenlogged.txt"; // This is the files the IPs are logged in.
$ip = getenv(\'REMOTE_ADDR\');
$fp = fopen("$log_file", "a");
fputs($fp, "$iprn");
flock($fp, 3);
fclose($fp);
PRINT("your IP has been logged.....$ip");
// "your IP has been logged....." .
?>
Then add this code in notepad and add it to your page then you need to change
bit to what your IP's files going to be.PHP Code:
$log_file = "ipsthathavebeenlogged.txt"; //
Don't forget to CHMOD your text file to 666
With me so far? Hope so.
PHP Includes
As i say just basic PHP codes that i've used some times, i'll put more PHP tutorials on here as i get more knowledge.PHP Code:
<?
include ('phppage.php');
?>
- Dan