Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read access problem with fopen

Status
Not open for further replies.
May 22, 2002
63
GB
Hi,

Can anyone help me find out why this line will not work on a remote php server (it simply outputs a 'page not found' error) but when i host it locally it works?

$fp = fopen("temp.csv","r") or die("Couldn't open");

If i change it to write access "w" it works fine (but then I can't retrieve any data from within the csv file). The paths are fine and work perfectly when locally served.

Is there are setting in php.ini that I am forgetting?

Cheers,
Anders
 
i cannot see it as the administrator is the only who has access. locally it is set to: ON.

If it's off in the php.ini file on the server can i force it to be on via my code?
 
running phpinfo.php tells me it is set to "1" on the server, so I guess it is turned on?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top