| Welcome to WebmasterWorld Guest from 18.104.22.168 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
| 3:02 pm on May 10, 2013 (gmt 0)|
I inherited a large website that I'd like to alter as little as possible. There is currently a problem with one of the path problems.
Clicking on a link creates an address looking like this.
In a constants.php file I find this.
$PATH = "../files/
How can i alter the path to go back a directory but change the "/" to "\"? I need the "../" to go back a directory but then the "/" is added to the path.
What I Want:
If the slashes are all in the same direction (forward or backward) the page will work.
| 3:30 pm on May 10, 2013 (gmt 0)|
I just did a string replace elsewhere and it fixed the problem.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved