Sujet : [Easy PHP] comment gérer le fait que l'on travaille en local ??? |
Cherrytree |
Code :
- <?
- if (getenv("HTTP_HOST" ) == "localhost" ) {
- // variables globales localhost
- $host = "localhost";
- $base = "cherrytree";
- $login = "";
- $pass = "";
- }
- else {
- // variables globales Free
- $host = "sql.free.fr";
- $base = "cherrytree";
- $login = "cherrytree";
- $pass = "xxxxxxxx";
- }
- ?>
|
[jfdsdjhfuetppo]--Message édité par Cherrytree--[/jfdsdjhfuetppo] |