Return to Snippet

Revision: 51571
at September 28, 2011 16:41 by cdohost


Initial Code
if ($_SERVER['REMOTE_ADDR'] !== '127.0.0.1'){
	$server = "localhost";
	$port ="3306";
	$database = "Test";
	$user = "user";
	$password = "123Change";
} else {
	$server = "localhost";
	$port ="3385";
	$banco = "Test";
	$user = "root";
	$senha = "";
}

Initial URL

                                

Initial Description
Local/Remote Connection Strings (Dados para conexão local e remota)

Initial Title
PHP - Local/Remote Connection Strings

Initial Tags
php

Initial Language
PHP