Jump to content

[SOLVED] finding the full server path of the script


johnwayne77

Recommended Posts

[b]i want to put in a variable the full server path of the script I'm running.[/b]

something like that:

[color=green]$variable = '/home/joe/www/site/'[/color]

I have mannged only to echo the script name itself.

I need this for a script I'm using which uses a cookie file. Here is the code:

[color=green][font=Verdana][font=Verdana]//
$cookie_file_path = "/usr/local/psa/home/vhosts/xxx.com/httpdocs/test/cookie.txt"; // Please set your Cookie File path
//[/font][/font][/color]

thanks

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.