failure to open stream

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jaymoore_299
Forum Contributor
Posts: 128
Joined: Wed May 11, 2005 6:40 pm
Contact:

failure to open stream

Post by jaymoore_299 »

I'm getting this error message when I try to run a script:

"failed to open stream: No such file or directory in /usr/www/virtual/name/www.domain.com/script/test1.php on line 3"

My actual directory doesn't have the /usr/ part, it is just /www/virtual/name..

The corresponding code in the php file is: require 'a_filename.php';

How do I get it to run?
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

make sure your pointing to the file in the correct folder

post some code
Post Reply