Emilio J. Rodríguez-Posada <[email protected]> wrote: > $_SERVER["HOME"] is undefined. I just used > parse_ini_file("../replica.my.cnf");
> [...] If you want to "totally future-proof" your script, you could also use (rephrased from https://wiki.toolserver.org/view/Database_access#PHP): | $userinfo = posix_getpwuid(posix_getuid()); | $homedir = $userinfo['dir']; This will always return the home directory of the account the script is running as. However, if we would ever decide to move the home directories around, you could probably not miss the pandemonium :-). Tim _______________________________________________ Labs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/labs-l
