/ Published in: PHP
Local/Remote Connection Strings (Dados para conexão local e remota)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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 = ""; }