Server directory of a running script

Ralf Bitter rabit at revigniter.com
Fri Nov 12 05:20:45 EST 2021


You might try $_SERVER["PATH_TRANSLATED"]


Ralf



On 12.11.21 10:59, jbv via use-livecode wrote:
> Hi list,
> Is there a way to get the full path of the server directory/subdirectory 
> in which an LC script is running, from within the script itself while it 
> is running ?
> I have a Livecode Hosting account and I need to get something like :
> "/home/myAccount/public_html/myDirectory/mySubDirectory/"
> 
> Thank you in advance.
> jbv
> 




More information about the use-livecode mailing list