Jump to content

web accessable directory of a file


dingus

Recommended Posts

I'm pretty sure you can't, but you can guess at it based off of the REQUEST_URI.

 

The problem is that a file doesn't have a web path, it has a directory path. If that happens to be in a local Apache is serving, then it will have a web path, but it might not have any and it might have several, when you consider vhosts and domain aliases and rewrite rules, ect.

 

A good starting place might be this:

 

print_r($_SERVER);

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.