Little help for a noob.

Ask about a PHP problem here.
Post Reply
geekables
Posts: 3
Joined: Sun Jul 29, 2012 6:51 pm

Little help for a noob.

Post 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.
Thunderbob
Posts: 46
Joined: Sat Jun 30, 2012 12:31 pm

Re: Little help for a noob.

Post by Thunderbob »

You'd have to post your code for anyone to help you and change the title to something relevant to your problem. 8-)
geekables
Posts: 3
Joined: Sun Jul 29, 2012 6:51 pm

Re: Little help for a noob.

Post 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';
}
ExtremeGaming
Posts: 205
Joined: Mon Jul 09, 2012 11:13 pm

Re: Little help for a noob.

Post by ExtremeGaming »

I do not believe file exists works for directories
<?php while(!$succeed = try()); ?>
geekables
Posts: 3
Joined: Sun Jul 29, 2012 6:51 pm

Re: Little help for a noob.

Post by geekables »

Yea. I figure it out.
Post Reply