Re: [PHP] Parsing Current Server Domain

2003-08-28 Thread Curt Zirzow
* 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'] i

[PHP] Parsing Current Server Domain

2003-08-28 Thread jeffrey pearson
Does anyone know how I would parse the domain that scripts are currently being executed in? For example: I use seperate domains for development and production. There are times I have to specify a hard coded url instead of a relative one. So for the development it would be; dev.domain.com/somef