How do i assign textfile a to a array?
Then run each line through a foreach loop?
anyone at all? 🙁
Try this, dought it'll work:
<?php $files = array("http://www.domain.com/file.txt"); foreach($files as $file){ echo "$file"; } ?>
If echo doesnt work try include.
Its include, not echo:
<?php $files = array("http://www.domain.com/file.txt"); foreach($files as $file){ include "$file"; } ?>
I want it to be array, so I can call the first line by $array[0]
Originally posted by evo4ever Try this, dought it'll work: <?php $files = array("http://www.domain.com/file.txt"); foreach($files as $file){ echo "$file"; } ?> If echo doesnt work try include. [/B]
Originally posted by evo4ever Try this, dought it'll work:
If echo doesnt work try include. [/B]
I should think so, give it a whirl.
Originally posted by iceraider anyone at all? 🙁
[man]file[/man]