ok, heres my new issue
Posted: Thu Nov 25, 2004 1:06 pm
im trying desperately to work this out on my own but it ain't happening
heres the code
im trying to $ip to test.txt, any help?
current output:
http://hosting.mixcat.com/asi0917/ips.php
________________________
help=good
heres the code
Code: Select all
<html>
<body>
<?
$ip = $_SERVERї'REMOTE_ADDR'];
echo $ip;
?>
<?
$filename = "test.txt";
$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));
fclose($handle);
echo "$contents";
?>
</body>
</html>current output:
http://hosting.mixcat.com/asi0917/ips.php
________________________
help=good