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