Page 1 of 1

[solved] why does this happen?

Posted: Sat Sep 17, 2005 11:45 pm
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.

Posted: Sun Sep 18, 2005 12:04 am
by jrucifer
nevermind, i'm retarded...