Re: Difficulties including scripts from another folder (apache2.2, PHP5, Vista)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, June 9, 2007 9:04 pm, Robert Cummings wrote:
> On Sun, 2007-06-10 at 01:02 +0100, brice wrote:
>> Thanks a lot guys!
>>
>> Eventually Richard hit on the issue:
>>
>> >require(".\foo.inc.php"); ?>#
>> >
>> >If you put .\ in there, then maybe PHP thinks you mean to NOT use
>> the
>> >include_path, but only the local directory?
>> >
>> >Take .\ out.
>>
>> it was the .\ that stopped it working. taking it out worked a treat!
>
> I never write any PHP code that relies on the include path. I hate
> magical crap like that :)

There is nothing magical about it.

And it's certainly better than the home-brew screwed-up messes you get
otherwise...

Maybe yours is better, but I've lost enough hair trying to "fix"
packages that have their include files in the web tree, and am not
willing to go down that path again.  I'd rather re-write than suffer
that.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux