Re: Problem on file_exists()
| From: | Ross Fleming | Date: | Tue, 16 Jul 2002 20:00:17 +0000 |
| Subject: | Re: Problem on file_exists() | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-14801@lists.php.net to get a copy of this message | ||
You shouldn't need to escape the space (I don't in XP). Examples of how I
use it...
$file_path = "C:\\documents\\ross\\file.mp3";
if (file_exists($file_path)) {
echo "exists";
}
else
{
echo "doesn't exist";
}
Ross
> -----Original Message-----
> From: Chris Hewitt [mailto:g0pae@manordat.demon.co.uk]
> Sent: 16 July 2002 11:32
> To: Jack
> Cc: php-general@lists.php.net; php-windows@lists.php.net
> Subject: [PHP-WIN] Re: [PHP] Problem on file_exists()
>
>
> Jack wrote:
>
> >Dear all
> >I had a folder which the path is : (\\nedcoraa\pdf_reports\dealing
> >room\report) it stores a lot of PDF reports in there.
> >I'm trying to use the file_exists() function to detect if a specific file
> >exist in this folder, but i got a problem is :
> >It seems that php can go through (\\nedcoraa\pdf_reports) but it can't go
> >through (dealing room) folder. i had made test on it, i moved a file into
> >(\\nedcoraa\pdf_reports), then php can detect it, but if i move it to
> >(\\nedcoraa\pdf_reports\dealing room), then it can't detect the
> file! why?
> >
> >I'm using php in windows NT IIS environment!
> >
> I think you will need to escape the space, usually with a \
>
> HTH
> Chris
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>