View Single Post
Old 07-25-2002, 03:02 AM   PM User | #6
firepages
Super Moderator


 
Join Date: May 2002
Location: Perth Australia
Posts: 3,890
Thanks: 5
Thanked 79 Times in 78 Posts
firepages will become famous soon enough
sorry, but like Spooks I can see no reason why that code would not work under any circumstances unless there was a problem with the include path in the php.ini, in saying that I see you tried the absolute path which should work in anycase.

I used include './sample_array.txt';
but all of your methods should have worked with the possible exception of $DOCUMENT_ROOT which may give a misleading value in a script aliased directory (and is best now accessed via $_SERVER[DOCUMENT_ROOT]

try running this to see if your include path has anything strange in it

echo ini_get('include_path');
__________________
resistance is...

MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)
firepages is offline   Reply With Quote