[solved] why does this happen?

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
jrucifer
Forum Commoner
Posts: 32
Joined: Fri May 13, 2005 2:36 pm
Location: phoenix

[solved] why does this happen?

Post by jrucifer »

if i run the script:

Code: Select all

$filename = 'prepre.mov';
if (file_exists($filename)) {
   echo "The file $filename exists";
} else {
   echo "The file $filename does not exist";
}
from /users/bucky/video/
it finds the file... but when i run the same script with

Code: Select all

$filename = '../users/bucky/video/prepre.mov';
from anywhere else, it says file does not exist.
jrucifer
Forum Commoner
Posts: 32
Joined: Fri May 13, 2005 2:36 pm
Location: phoenix

Post by jrucifer »

nevermind, i'm retarded...
Post Reply