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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error: failed to open stream

Status
Not open for further replies.

TheConeHead

Programmer
Aug 14, 2002
2,106
US
I get this error on one server but the page works fine on another?? is this a server setting? if so, what do I need to change?

[conehead]
 
Compare the server settings for the one that works with theone that doesn't. That'll give you an accurate picture of what settings could be causing this.

I would pick that you just haven't got access to the resource, or that you are running in safe mode or something.

Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]
 
I do not have easy access to the servers, I was hoping to find out exactly what was wrong so I could tell the admin "This is what you need to change: "



[conehead]
 
it actually says:

failed to open stream: No such file or directory

But the file is there ???

[conehead]
 
Probably the path you are passing is wrong? Or maybe you don't have read access (from the server) on that file?

You can use <?phpinfo()?> to output the settings for a php server... this might be what you want to use to compare settings... but check the directory privs first.

Are both servers using the same operating system? Could be a slash issue (\ on windows, / on everything else).

Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]
 
the path is correct... I'll try the phpinfo() deal and let you know what it says...

thanks

[conehead]
 
Here is one difference:

works: Server API CGI/FastCGI

does not work: Server API Apache

Could this be something?

[conehead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top