* Thus wrote jeffrey pearson ([EMAIL PROTECTED]): > Does anyone know how I would parse the domain that scripts are currently being > executed in? > > ... > > dev.domain.com/somefile.php > > where on the live site it would be > > www.domain.com/somefile.php
In most cases $_SERVER['HTTP_HOST'] is what you want. It wont be available if you access the site with the ip address. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php