public inbox for [email protected]  
help / color / mirror / Atom feed
From: Adrian Maier <[email protected]>
To: Magnus Hagander <[email protected]>
Cc: [email protected]
Subject: Re: Path-ralated problem while setting up a local postgresql website
Date: Wed, 11 Jan 2006 00:10:39 +0200
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

>
> 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



view thread (4+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Path-ralated problem while setting up a local postgresql website
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox