Afficher un message
Vieux 04/03/2005, 09h29   #3
yawnmoth
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: determing real url on virtual host


David Efflandt wrote:
> On 3 Mar 2005 21:21:04 -0800, yawnmoth <terra1024@yahoo.com> wrote:
> > say i have two domain names - adomain.com and anotherdomain.com.
> > adomain.com's base directory is the same as
> > anotherdomain.com/~adomain/. if i were running a php script on
> > adomain.com, how might i determe the real path of that php script

(ie.
> > not the virtual path)?

>
> Why not make a sample script that prints all env variables to find

out?
> I am not familiar with php, but judging from CGI, you might get

something
> useful from SCRIPT_FILENAME


i did. here's the contents of that script:

<?
print_r($_ENV);
echo '<p>--<p>';
print_r($_SERVER);
?>

nothing that was printed out showed the real path - only the virtual
paths (or the filesystem paths, which i can't use to construct
alternative url's from).

  Réponse avec citation
 
Page generated in 0,11539 seconds with 9 queries