Over a million developers have joined DZone.

Develop And Production Server On Same Php File

// same mysql connection file for development and production, or more servers
// can you use the global $_SERVER['HTTP_HOST'] to identify your current active server, simple huh??
// this simple scrip identify your server by address
// if you want more serves, just add a elseif clause


{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}