Welcome to WebmasterWorld Guest from 54.145.208.64

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

PATH problems

   
3:02 pm on May 10, 2013 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



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.
3:30 pm on May 10, 2013 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



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