locating general file path
Posted: Thu Jan 05, 2006 1:06 pm
When I want to refer to a file in the main directory I have to use something like this:
$a1=function_name("/usr/www/virtual/username/www.domain.com/file.txt",9);
Since the file is in my main folder for the domain, is there a more general way to refer to the file without writing out all the "/usr/www/virtual/username/" part?
Something like this
$a1=function_name("$_Find_main_domain_path()file.txt",9);
and it would always refer to that particular file in the main directory regardless what domain it is in.
$a1=function_name("/usr/www/virtual/username/www.domain.com/file.txt",9);
Since the file is in my main folder for the domain, is there a more general way to refer to the file without writing out all the "/usr/www/virtual/username/" part?
Something like this
$a1=function_name("$_Find_main_domain_path()file.txt",9);
and it would always refer to that particular file in the main directory regardless what domain it is in.