PDA

Click to See Complete Forum and Search --> : Relative server paths - Help!


EC
01-13-2006, 01:09 AM
I'm helping a client that was told by his previous web designer that what I am trying to do can't be accomplished. I don't accept this because I've done just this very same exact thing many many times.

Basically in short, I have some software running in a system folder. I can run a separate domain with the same software by putting an index.php file as well as a path.php file in the "second domain" folder - where the path.php tells this directory where to go to get the good stuff (system folder).

What's really wierd is that if you go to the domain itself, it gave this error before I ever touched anything: "The system path does not appear to be set correctly. Please open your path.php file and correct the path."

And when you go to the folder, the other dude didn't have an index.php or a path.php file in there.

So that right there confuses me. I shouldn't be getting an error like this, but rather a 404 or something.

So I put the path.php and index.php file in there, change the settings accordingly, and I continue to get the same exact error.

Anyhoo. I've tried every combination possible and I can't get it to work.

So this is what's goin' down. The system folder and the folder controlling the second domain are in the same (root) directory.

I've tried this


$system_path = "/system/";


this


$system_path = "./system/";


this


$system_path = "../system/";


And even some other stuff that didn't work either.

I always have trouble wrapping my mind around server paths, but do you think this is some completely unrelated issue?

JPnyc
01-13-2006, 01:18 AM
I think you have to reference root or something, if it's at the root.

EC
01-13-2006, 01:20 AM
well, I've never had to do that in the past. You mean like public_html/system? I'll give it a shot but I don't remember ever having to do that.

Thanks J

EDIT: Shows how clueless I am about paths. I checked the forums the software company runs, this is indeed a setting that they've recommended to some members having trouble with this. Just didn't work for me. :(

EC
01-13-2006, 01:27 AM
httpdocs/system

/httpdocs/system

even got crazy with the cheese wiz : ../../../httpdocs/system/

which is just me stabbing. nuthin'. crud.

JPnyc
01-13-2006, 01:30 AM
I'll see if i can get our sysadmin to take a look in here tomorrow.

EC
01-13-2006, 01:31 AM
sweet. muchas gracias. :)

EC
01-13-2006, 01:37 AM
Ok I went and checked the code for a site that's structured in the same way -- the system folder and the second domain folder is located in the same directory. It's set like this:

../system/

So I think I was right the first time. There must be something else going on.