homepage Welcome to WebmasterWorld Guest from 54.167.11.16
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
PATH problems
StoutFiles




msg:4572720
 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.

server/files/2013\05.May\10\/

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:

server\files\2013\05.May\10\

If the slashes are all in the same direction (forward or backward) the page will work.

 

StoutFiles




msg:4572726
 3:30 pm on May 10, 2013 (gmt 0)

I just did a string replace elsewhere and it fixed the problem.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved