syntax of path to file_exists
Posted: Fri Aug 20, 2004 4:21 am
Hi all,
i'm usin the following code to determine whether a file exists or not. While i can see that the file really exists at the given path..the result in the browser is "not exists". giving the code..
i think the problem is in the way i give the path, i mean the syntax.
pls correct me.
chandu
i'm usin the following code to determine whether a file exists or not. While i can see that the file really exists at the given path..the result in the browser is "not exists". giving the code..
Code: Select all
<?php
if( file_exists('/html/ravi/sing.JPEG') ){
echo "exists";
}
else echo "not exists";
?>i think the problem is in the way i give the path, i mean the syntax.
pls correct me.
chandu