[OT] PHP version of server_name

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[OT] PHP version of server_name

shelane
Anyone know how to get the server name in php?

I need to know if it's on the dev or the production site so I can point the
form request to the right place (on a different server that's either dev or
prod).



--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


Reply | Threaded
Open this post in threaded view
|

Re: [OT] PHP version of server_name

Randy Phillips-2
$_SERVER['SERVER_NAME'];

http://php.net/manual/en/reserved.variables.server.php

On Wed, Mar 17, 2010 at 3:23 PM, Shelane Enos <[hidden email]> wrote:

> Anyone know how to get the server name in php?
>
> I need to know if it's on the dev or the production site so I can point the
> form request to the right place (on a different server that's either dev or
> prod).
>
>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>
>



--
!!Rp

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/