From: Chad <ch...@ch...> - 2002-11-10 23:06:01
|
This issue seems to have come about due to Apache 2.x and PHP4.2.x working together and breaking relative paths (ie ../filename instead of /my/path/filename). This bug was reported at php.net and can be seen at the urls: http://bugs.php.net/bug.php?id=19323 http://bugs.php.net/bug.php?id=19287 The suggested course of action is to upgrade your version of PHP to PHP4-STABLE-200210011500 or higher, or consider changing Apache back to the 1.3 branch. Unfortunately using getcwd breaks certain pages, such as the RSS index. On Wednesday, November 6, 2002, at 02:14 PM, Waitman C. Gobble wrote: > great. > > what do you think about changing the constant BASE to a variable, and > setting it to getcwd() > > ? > > there was a report of a bug in php 4.2.3 with apache 2.0.43 the messed > up the file_exists call. i have seen this bug in previous versions of > php, not sure why it has apparently resurfaced, but using the full path > with getcwd fixes the problem. > > the change would simply prevent future incidence. > > the getcwd() should be used in a single place, with a note : > > in case some ISP has this function blocked in their php.ini > configuration file, the user can manually place the full path in the > $BASE variable and remove the getcwd() call. > > otherwise, perhaps we could check to see if the function is available > and default to the "./" thing. > > thanks! > > waitman > > > On Wed, 2002-11-06 at 11:26, Bill Fenner wrote: > Waitman said: >> i noticed a problem with >> http://www.emkdemo.com/phpicalendar-0.8.1/rss/index.php >> >> i was getting a "WARNING: failed to include fle ./header.inc.php on >> line >> 17" at the top of the page. > > I changed this to use BASE like the include of the footer. > > I also fixed the problem that descriptions weren't being included > in the rss feed. > > Bill > > > ------------------------------------------------------- > 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 > > > > > > ------------------------------------------------------- > 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 |