Re: [PHP] Includes and paths confusion

2006-04-29 Thread Richard Lynch
On Fri, April 28, 2006 3:09 am, Nick Wilson wrote: [EMAIL PROTECTED] ls ads/ config.inc db.inc funcs.inc init.inc where ads/ is a whole huge set of scripts from an existing setup. ads/ was originally placed on its own domain as it's a version of phpadsnew and runs as a server all by

[PHP] Includes and paths confusion

2006-04-28 Thread Nick Wilson
Hello all, Im having some problems understanding why some requires() are failing. Let me see if i can describe what's going on clearly... I have this: [EMAIL PROTECTED] ls ads/ config.inc db.inc funcs.inc init.inc where ads/ is a whole huge set of scripts from an existing setup. ads/ was

Re: [PHP] Includes and paths confusion

2006-04-28 Thread Jochem Maas
Nick Wilson wrote: Hello all, Im having some problems understanding why some requires() are failing. Let me see if i can describe what's going on clearly... I have this: [EMAIL PROTECTED] ls ads/ config.inc db.inc funcs.inc init.inc where ads/ is a whole huge set of scripts from an

Re: [PHP] Includes and paths confusion

2006-04-28 Thread Nick Wilson
* and then Jochem Maas declared Nick Wilson wrote: Hello all, Im having some problems understanding why some requires() are failing. Let me see if i can describe what's going on clearly... I have this: [EMAIL PROTECTED] ls ads/ config.inc db.inc funcs.inc init.inc where ads/ is

Re: [PHP] Includes and paths confusion

2006-04-28 Thread Jochem Maas
Nick Wilson wrote: * and then Jochem Maas declared Nick Wilson wrote: ... use something *like* the following: $oldincpath = ini_get('include_path'); ini_set('include_path', 'path/to/ads/stuff:etc'); // do your 'ads' requires ini_set('include_path', $oldincpath); Unfortunately

Re: [PHP] Includes and paths confusion

2006-04-28 Thread Nick Wilson
* and then Jochem Maas declared check directory permission, check the include_path is being set, check the include path is actually correct (I take it you have a good understanding how include_path works). Good call on dir perms, but yes, they appear to be fine. I *think* i have a good

Re: [PHP] Includes and paths confusion

2006-04-28 Thread Jochem Maas
dirs named in include_path should not have a slash at the end. and don't forget to include the DOT as one of your include pathes e.g. ini_set('include_path', '.:/the/rest'); can you send the list of requires you do [again] (and state where the files are actually living on disk) - I'm on 3