Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.