Re: Path-ralated problem while setting up a local postgresql website

From: Adrian Maier <adrian(dot)maier(at)gmail(dot)com>
To: Magnus Hagander <mha(at)sollentuna(dot)net>
Cc: pgsql-www(at)postgresql(dot)org
Subject: Re: Path-ralated problem while setting up a local postgresql website
Date: 2006-01-10 22:10:39
Message-ID: cd30ef8c0601101410r1553ee57oc6add965c355bbac@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www

>
> In the .htaccess file in the root (portal) directory, I have:
> php_value include_path "/var/www/pg-pear/lib:."
>
> Do you have that, or similar? Note the single-dot path at the end after
> the colon, it needs to be there.
> And if it's there, are you sure it's being processed (the htaccess
> itself, but also this line in particular)? Also worth double-checking.

Hello,

In .htaccess i have :
php_value include_path "/usr/pkg/lib/php/:."
The setting is surely processed because the error message displays
the include_path .

Anyway, I have read the user comments for php's include
and found a solution:
The problem is solved by adding at the beginning of handler.php :
chdir(realpath(dirname(__FILE__)));

Thanks for the reply,
Adrian Maier

In response to

Responses

Browse pgsql-www by date

  From Date Subject
Next Message Tom Lane 2006-01-11 04:55:24 pgsql-committers shouldn't be the default "developers" list
Previous Message Magnus Hagander 2006-01-10 21:57:14 Re: Path-ralated problem while setting up a local postgresql website