|
Posted by J.O. Aho on 04/15/07 04:55
tom_sawyer70@yahoo.com wrote:
> On Apr 14, 5:54 pm, "tom_sawye...@yahoo.com" <tom_sawye...@yahoo.com>
> wrote:
>> On Apr 14, 3:18 pm, "J.O. Aho" <u...@example.net> wrote:
>>
>>
>>
>>> The line you have has a syntax problem and thats why it don't work, the
>>> separator is : and not ;
>>> so your configuration should look like this (one line):
>>> include_path = ".:/srv/www/htdocs/includes:usr/share/php5:/usr/share/php5/PEAR"
>> Hmm...changed the syntax, restarted apache, tried again and it didn't
>> work. I tried the full URL, ../includes/nav.php, ./includes/nav.php,
>> and /srv/www/htdocs/includes/nav.php, all without luck.
>>
>> Is there a way to turn on some type of verbose error logging?
>>
>> One thing from my earlier post that did change is that I no longer
>> need the path "includes" in the index.php file anymore, so the syntax
>> did clear that problem.
>
> I guess that another way to specify my question is this...
>
> If I have a structure that is:
> /srv/www/htdocs/index.php
>
> and it can call nav.php, which is in /srv/www/htdocs/includes/ because
> the include_path is in the php.ini, then what syntax should I use to
> call that same nav.php file if the file calling the nav.php is located
> in:
>
> /srv/www/htdocs/family1/family1.html
include('nav.php');
of course the
include('../include/nav.php')
and
include('/srv/www/htdocs/includes/nav'php');
will work and are ok too.
Of course the safe_mode* settings can affect things.
If you want more error notifications, then set
error_reporting = E_ALL
--
//Aho
[Back to original message]
|