I’ve had some problems with paths in the last couple of weeks. Most likely something with my hosting company since perfectly good and previously working scripts (such as Mambo and Coppermine) ceased to function. What happened was that I typically had a root folder with some sort of index.php. In that file there was a require or include for a folder/file.php. That file did in turn include another file that was also present in folder/.
I did manage to fix the Coppermine Gallery by adding a path specification to init.inc.php. Namely:
ini_set(”include_path”, “.:../:./include:../include”);
The name of the folder is obviously “include”. Since only two of a dozen scripts were disabled by this I imagine the bulk of users will never encounter this. I reckon it is something with the latest compile of PHP that went awry for 99k hosting. At any rate I’m too lazy to contact them. At least as long as I can fix it myself. Bottom line … the gallery should be working again ..
(2004-08-20) Edit: a much better way to do this would be to use:
ini_set(’include_path’, ‘.:’.ini_get(’include_path’));
Should effectively add pwd to include_path. Why it would be dropped from include_path in the first place still eludes me though. Perhaps something that has changed in the last couple of versions of PHP 4.x.
Contact
Lifestream




