waynew Posted October 20, 2009 Share Posted October 20, 2009 I have a absolute path to an image - like so: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/nigeria/images/uploaded/1/71256119068_51fe7f0fd342377.jpeg How can I get the relative document path? Quote Link to comment https://forums.phpfreaks.com/topic/178329-relative-path/ Share on other sites More sharing options...
Daniel0 Posted October 20, 2009 Share Posted October 20, 2009 Relative to what? What do you want the output to be? nigeria/images/uploaded/1/71256119068_51fe7f0fd342377.jpeg? In that case, just strip off the document root from the string. Quote Link to comment https://forums.phpfreaks.com/topic/178329-relative-path/#findComment-940315 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.