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.
Little help for a noob.
-
- Posts: 46
- Joined: Sat Jun 30, 2012 12:31 pm
Re: Little help for a noob.
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.
$Directory = "//MY-PC/Users/ME/Desktop/"; if(file_exists($Directory)) { $FileToSearch = null; echo 'File exists'; } else { echo $Directory; echo 'File does not exists'; }
-
- Posts: 205
- Joined: Mon Jul 09, 2012 11:13 pm
Re: Little help for a noob.
I do not believe file exists works for directories
<?php while(!$succeed = try()); ?>
Re: Little help for a noob.
Yea. I figure it out.