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:[EMAIL PROTECTED]] > Sent: 16 July 2002 11:32 > To: Jack > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > 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 > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php