|
From: Rene R. <re...@gr...> - 2002-06-22 12:19:52
|
On Sat, 2002-06-22 at 07:00, Joe zacky wrote: > Rene, > > There's a problem with $siteroot if I put the bobs web pages in my > /home/joe/public_html directory and access it as > http://jupiter.zebra.com/~joe/bobs/admin.php. $siteroot evaluates to > "/var/www/html/~joe/bobs", when it needs to be > "/home/joe/public_html/bobs" for the includes in admin.php to work > right. There's some url conversion going on because of the "UserDir > public_html" directive in httpd.conf. If I change the includes from: > > require($siteroot . "/inc/config.php"); > to > require("inc/config.php"); I guess there are two options here. Either we go with a relative path or a "realpath" command. PHP has a command like that but I'm not sure it'll do the trick. The code is really not consistent on this. Some parts use relative paths and others use the full path. I've mostly used full paths and prefer that, since it gives me a warm fuzzy feeling of being in control. But if it posses to many problems we should go with the relative paths. -Rene > then it works. As long as the "inc" files are relative to the specified > path, it should be okay. I'd like your opinion on that - whenever - > there's no rush. > > Joe > > > > ------------------------------------------------------- > Sponsored by: > ThinkGeek at http://www.ThinkGeek.com/ > _______________________________________________ > Bobs-devel mailing list > Bob...@li... > https://lists.sourceforge.net/lists/listinfo/bobs-devel |