RE: [PHP-WIN] Problem on file_exists() function
| From: | Ross Fleming | Date: | Wed, 17 Jul 2002 17:47:59 +0000 |
| Subject: | RE: [PHP-WIN] Problem on file_exists() function | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-14817@lists.php.net to get a copy of this message | ||
It's likely a permissions problem under NT.
> -----Original Message-----
> From: Jack [mailto:nedcor4@nedcor.com.hk]
> Sent: 17 July 2002 08:55
> To: php-general@lists.php.net; php-windows@lists.php.net
> Subject: [PHP-WIN] Problem on file_exists() function
>
>
> Dear all
> I had made a test.txt file which stored in the following window path :
> c:\pdf_reports\dealing\test.txt,
> In my page, i ask php to check the test.txt exist in foler
> (c:\pdf_reports\dealing) using the following script:
>
> if (file_exists("c:\\pdf_reports\\dealing\\test.txt"))
> {
> print ("exist");
> }
> else
> {
> print ("Doesn't Exist!");
> }
>
> It seems that php can't detect the file in such path!!!
> I had made another test on this, i moved the test.txt to one
> level up which
> is (c:\pdf_reports) and i use the following script :
>
> if (file_exists("c:\\pdf_reports\\test.txt"))
> {
> print ("exist");
> }
> else
> {
> print ("Doesn't Exist!");
> }
> Then it can detect the file is there! why?
>
>
> --
> Thx a lot!
> Jack
> nedcor4@nedcor.com.hk
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>