From: Brett O'C. <oco...@do...> - 2002-11-05 21:41:18
|
Hi! Thanks for responding. No, I don't think this server is running in cgi mode. Here is a link to the phpinfo() for the server: http://mephisto.intelligent-imaging.com/oconnorb/phpinfo.php Although I must admit I didn't think of that. Also, as far as I can tell the base dir resolves correctly. Here is a link to my calendar where I echo it at the top: http://mephisto.intelligent-imaging.com/oconnorb/ Also, below that, I am echoing the $lang_file string. Perhaps you see something amiss? Thanks again for the response! Brett On Tuesday, November 5, 2002, at 01:30 PM, Waitman C. Gobble wrote: > are you running php in cgi mode? check your phpinfo(); > > near the top it will tell you. > > apache2 module "Server API" Apache 2.0 Filter > apache module "Server API" Apache > cgi "Server API" CGI > > > The init.inc.php thing sets "BASE" to be "./" > So it would be relative to the current working directory. > > If your current working directory is not the same as the calendar root > then file_exists() won't work. > > put this at the top of functions/init.inc.php > > <?php > echo getcwd(); > > then pull your calendar up in your browser, look what it prints at the > top of the page - > and see if it makes sense. > > The reason I ask about the CGI mode above, this is the first thing that > I can think of that could cause your current working directory to be > different then the actual script file. > > another possibility could have to do with symbolic links. > > you might think your pages are located at > /www/web/html/directory/ > > but they are really located at > /x346346/fijaiogjg/home/akwjfkj/html/directory > > and php is getting confused. > > so try the echo getcwd() command and we will go from there ;-) > > best, > > Waitman Gobble > EMK Design > Buena Park California > +1.7145222528 > http://emkdesign.com -- Brett O'Connor Dogheadbone LLC P.O. Box 171 Littleton, CO 80160 Phone: 303.797.2992 AIM: BrettDHB E-Mail: oco...@do... Web: http://www.dogheadbone.com/ |