Hi,
this forum is great, solved two of my problemes yesterday, hope you guys can solve this one..
Ok, i open a text file and read it line by line.
.. in the text file are a list of *.htm names,
eg.
1024.htm
1023.htm
1027.htm
So: after each read i can dump to the screen the name of the file I want to display!
So on my main page to test it, it shows 1024.htm1023.htm1027.htm.
I therefore know it is reading the textfile ok??
ok, so in my main loop i want each line of the text file to be an include, ie.
include($textfile[$k])
so it will display several diff html files dependant on what is in the text file.
Well it says can't find 1023.htm etc???
If I hard code the loop for example include("1023.htm") I get three 1023.htm's loading so they are there and working, but the include($textfile[$k]) wont work?
I am stumped!!! Only thing I can think of, is that my string is in some weird format somehow??
Thanks for any help
t0ny.