From: Waitman C. G. <wa...@em...> - 2002-11-05 20:25:55
|
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 On Tue, 2002-11-05 at 11:57, Brett O'Connor wrote: Hello PHPiCalendar Developers! I recently installed PHPiCalendar on a Linux 7.3 / PHP 4.2.3 server and had some problems regarding the code below (lines 37-40 in functions/init.inc.php): if (file_exists($lang_file)) { include($lang_file); } else { exit(error('The requested language "'.$language.'" is not a supported language. Please use the configuration file to choose a supported language.')); } It appears that file_exists will be false if the web user running under apache does not have permission to peruse the full directory string (or at least that's what I suspect so far). I also noticed someone else had this problem in this forum message: http://phpicalendar.sourceforge.net/phpBB2/viewtopic.php?t=92&highlight= S/he was having this problem on Linux also. I just commented out the if statement for now and forced the include and things work great, but I thought you would like to know about this bug. If I am able to come up with a better solution (perhaps a way to check for the file via URL string?) I will let you know. Brett -- 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/ ------------------------------------------------------- This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en _______________________________________________ Phpicalendar-devel mailing list Php...@li... https://lists.sourceforge.net/lists/listinfo/phpicalendar-devel |