If you have your data for your website as with FreeBSD in
/usr/local/www/data/
you then do the following to include:
** assume you have a "lib" directory in the /data/ area
** moving from platform to platform always has some impact on includes!!
include('/usr/local/www/data/lib/somefile.conf');
I hope this helps... the other way is to set the include paths etc!!
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: t...@hitcho.com.au
> -----Original Message-----
> From: pi...@bellnet.ca [mailto:pi...@bellnet.ca]
> Sent: Friday, 10 January 2003 11:00 AM
> To: php-g...@lists.php.net
> Subject: [PHP] HEEELP...please
>
>
> I absolutely cannot understand the include_path directive.
> Can somebody, please, explain this?
> I have a situation that I find absolutely incomprehensible: I
> moved my
> experimental web-site from FreeBSD 4.5 running php4 v. 4.0
> (or something),
> apache 1.13 where thesite worked just fine to another box
> with FreeBSD 4.7
> running php4 v. 4.2.3, apache 1.13.27_1.
> All of a sudden, I get the message:
> Warning: Failed opening '/../lib/somefile.conf' for inclusion
> (include_path='.:/usr/local/lib/php') in
> /usr/local/www/html/index.php on
> line 6
>
> I can find nothing in the httpd.conf files that could account
> for this;
> there is no configuration in them for include_path.
>
> Obviously, the php file is being parsed correctly, but there
> is a problem
> with the line :
> include "$DOCUMENT_ROOT/../lib/somefile.conf".
>
> It works on one machine, but not on the latest version of
> php4 an apache.
>
> I see there are others on the net who have had this problem,
> but I have not
> yet found an explanation or a cure.
>
> HEEEEELP.... please,
>
> PJ
>
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
Have you also checked in php.ini? -- that would seem to be a more likely
place!
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.f...@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
somewhere in php.ini
pi...@bellnet.ca wrote:
> At 12:01 PM 1/10/2003 +0000, you wrote:
>
>> > -----Original Message-----
>> > From: pi...@bellnet.ca [mailto:pi...@bellnet.ca]
>> > Sent: 10 January 2003 01:00
>> >
>> > All of a sudden, I get the message:
>> > Warning: Failed opening '/../lib/somefile.conf' for inclusion
>> > (include_path='.:/usr/local/lib/php') in
>> > /usr/local/www/html/index.php on
>> > line 6
>> >
>> > I can find nothing in the httpd.conf files that could account
>> > for this;
>> > there is no configuration in them for include_path.
>>
>> Have you also checked in php.ini? -- that would seem to be a more likely
>> place!
>
>
> The only php.ini files are in work directories for installation of
> mod_php4 and there is no reference to register_globals, which seems to
> be my problem (by default, php4.2 has register_globals = off)
> I suppose the only way to temporarily turn the globals on is by
> modifying the php.ini file. But I am not sure just what the directive
> should be... :((
> Thanks for your help,
> PJ
>
>
>