Page 1 of 1
Little help for a noob.
Posted: Mon Jul 30, 2012 8:46 pm
by geekables
Hello I'm working on a project. That uses php and check see if a file exists or not on the computer I'm using could anyone point me in the right way please. I've search every where...
The code keeps telling me file doesn't exists.
Re: Little help for a noob.
Posted: Mon Jul 30, 2012 8:47 pm
by Thunderbob
You'd have to post your code for anyone to help you and change the title to something relevant to your problem.
Re: Little help for a noob.
Posted: Mon Jul 30, 2012 8:53 pm
by geekables
$Directory = "//MY-PC/Users/ME/Desktop/";
if(file_exists($Directory)) {
$FileToSearch = null;
echo 'File exists';
} else {
echo $Directory;
echo 'File does not exists';
}
Re: Little help for a noob.
Posted: Mon Jul 30, 2012 10:48 pm
by ExtremeGaming
I do not believe file exists works for directories
Re: Little help for a noob.
Posted: Tue Jul 31, 2012 12:05 am
by geekables
Yea. I figure it out.