Oh god. Please don't move the directories around. :p Gesendet von Maximilian's iPad. (Sent from Maximilian's iPad.)
> On Jun 17, 2014, at 20:11, Tim Landscheidt <[email protected]> wrote: > > 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 _______________________________________________ Labs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/labs-l
