Re: PHP Script Help
$url = "users.txt";
$file = file($url); //open file for reading
for ($line=0;$line<=sizeof($file);$line++) //look at lines, one at a time from zero to the end of the file
if (ereg("Name:", $file[$line])) //look for the regular expression Name:
$temp = split(":", $file[$line]); //split the line on a common charector (:)
print "name = $temp<br>"; //print the sceond part of the split array as this is the name
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."