hey guys,
I have a little problem with reading from file, and since I know several foreign languages much better than i know php any help will surely be appreciated.
OK, I have a php page reading from file and putting it out in a nice html form. My file has information in it in this pattern:
0005|%|%|22 central ave|%|%|john smith|%|%|23
0006|%|%|6334 main str|%|%|franklin george|%|%|56
...etc...
alright, so i take information from here and put it in format like links (ugu). Hopefully you understand, but if not you will after seeing my code:
$file=file("myfile.txt");
foreach ($file as $line) {
list ($number, $address, $name, $count)=split("|%|%|", $line);
print <<<EOD
<tr><td><a href=http://localhost/view.php?$number=number&address=$address>$address</a></td>
<td width=20>$count</td><td width=100><a hrefviewprofile.pl?user=$name>$name</a></td></tr>
EOD;
aight, my "view.php" opens file like 0006.php 0005.php etc and puts $address in there; thing is that when I have single word in address (when is that? 🙂 )it is working fine but just when I get something like "great blv 56" I get a link to 0006.php with the only word "great" or whatever first word was in my address.
I am not sure if I could explain it even more un-understandable 🙂, but here is best I can do: my text apperes to be only the first word, when I want it to be the whole phrase.
Thank you kindly for any help