|
From: Waitman C. G. <wa...@em...> - 2002-11-11 00:44:58
|
Wow, that's a great idea.
You might need a checker thingy to make sure that some numbnuckles like
me doesn't set the BASE wrong. But I do suppose since you are going to
put that thing at the top that tells the machine to use that particular
location as the current working directory, it wouldn't really matter.
Take care,
Waitman
On Sun, 2002-11-10 at 16:34, Jared wrote:
You're right that getcwd() isn't an option. That's the whole point of
BASE in the first place, to tell the scripts where the BASE PHP iCal
directory is. However, if at the top of every script, we run a function
(yet to be written) which changes the cwd to the base phpicalendar
directory, everything should work fine and we can use getcwd() to use
the full path.
My thoughts on this would be to check for the existence of a directory
called "functions," a directory called "styles," and a directory called
"languages." If these 3 are all found, we could possibly check for the
existence of "functions/ical_parser.php," If all this hold up, I think
it'd be safe to say we're in the phpicalendar root folder. A function
that does that wouldn't be hard to write. I'm just wondering if that is
sufficient enough to make an accurate assumption.
-Jared
On Sunday, November 10, 2002, at 05:06 PM, Chad wrote:
> 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
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Phpicalendar-devel mailing list
> Php...@li...
> https://lists.sourceforge.net/lists/listinfo/phpicalendar-devel
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Phpicalendar-devel mailing list
Php...@li...
https://lists.sourceforge.net/lists/listinfo/phpicalendar-devel
|