Can someone tell me how to change a windows path to a linux path. just the \ to / is all i need.
Thanks!
win path to linux path
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: win path to linux path
And get rid of the drive letter (e.g. c:) if that is in the path. Absolute Unix paths look like '/home/foo/www/' while on Windows 'c:\Users\foo\www'.
(#10850)
Re: win path to linux path
sorry. How can i change a path string using php?
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: win path to linux path
Path separators are generally interchangable in PHP. What are you trying to do?