Jump to content

UNC to local path


premtemp

Recommended Posts

hello,

How do I convert a UNC path to the local path. for example, I have a shared folder where users can access some information (//serverx/sharex/folderx) and I would like to get the local path (e:\sharex\folderx). Does PHP has a function to do this?

 

I am trying a read the folder and display the files and it it much faster to read using the local path.

 

Thanks

 

Link to comment
https://forums.phpfreaks.com/topic/167215-unc-to-local-path/
Share on other sites

Is serverx the server on which php runs? Or do you want to access that server through php using something like fopen()? If the latter then you can not modify to e:/ as that would point to your own hard drive (in this case your cd- or dvd-rom). //serverx identifies a server on your network, everything after serverx (/sharex/folderx) identifies a resource on that specific server.

Link to comment
https://forums.phpfreaks.com/topic/167215-unc-to-local-path/#findComment-881803
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.