Jump to content

Check File Exists at mapping drive


cltn77

Recommended Posts

I had problem to check file exists or not at mapping drive.

Below is my coding:

 

$filename = "p:\myfolder\Feb2008.pdf";

if (file_exists($filename)) {

    echo "The file $filename exists";

} else {

    echo "The file $filename does not exist";

}

 

The output is The file p:\myfolder\Feb2008.pdf does not exist

 

Any suggestion?

 

TQ

Link to comment
https://forums.phpfreaks.com/topic/154146-check-file-exists-at-mapping-drive/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.