smartie_on_computer
04-25-2006, 06:39 AM
hey every body, i im kina stuck with this,
i have a simple index php file that will open a txt file and get the ip address out like so
<?php
fread("ip.txt",'r');
$address = explode("=", $str);
print "this current given ip address is:".$address[1];
?>
and the txt file
ip=192.1681.2
but the the fil out puts:
this current given ip address is: // /* */
any idea
thanks
i have a simple index php file that will open a txt file and get the ip address out like so
<?php
fread("ip.txt",'r');
$address = explode("=", $str);
print "this current given ip address is:".$address[1];
?>
and the txt file
ip=192.1681.2
but the the fil out puts:
this current given ip address is: // /* */
any idea
thanks