PATH_INFO at document root

From: Date: Fri, 11 May 2001 21:12:18 +0000
Subject: PATH_INFO at document root
Groups: php.general 
Request: Send a blank email to php-general+get-52516@lists.php.net to get a copy of this message
Hi all, I want to set up one virtual server with many domains pointing to it which serves pages depending on the domain name. Here is how i see it: 1) 3 domains pointing to 1 virtual server, eg. www.foo.com www.bar.com and www.blah.com 2) If user visits http://www.foo.com/contact.phtml then the PHP script does this: <? include ($DOCUMENT_ROOT . "/" . $SERVER_NAME . $PATH_INFO); ?> So the question is, how do i get one script called no matter what comes after the root slash, and pass that info to the script? Cheers Simon Kimber

« previous php.general (#52516) next »