Jump to content

[SOLVED] Modifying $_SERVER['SCRIPT_FILENAME']...


Guest convention

Recommended Posts

Guest convention
Ah, thank you. But I realized I need something like DOCUMENT_ROOT. If I have a script located in '~/Sites/mysite/' which echoes DOCUMENT_ROOT, then it displays just '~/Sites/'. I need it so it displays '~/Sites/mysite/' even if the script is in a subfolder of 'mysite' (ex: if the script is located in '~/Sites/mysite/subfolder/' it will still echo '~/Sites/mysite/').

Is that possible?

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.