Re: Path-ralated problem while setting up a local postgresql website - Mailing list pgsql-www

From Adrian Maier
Subject Re: Path-ralated problem while setting up a local postgresql website
Date
Msg-id cd30ef8c0601141032h16a24e66t2e2679ed6552367@mail.gmail.com
Whole thread Raw
In response to Re: Path-ralated problem while setting up a local postgresql website  (Adrian Maier <adrian.maier@gmail.com>)
List pgsql-www
On 1/11/06, Adrian Maier <adrian.maier@gmail.com> wrote:
>
> 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__)));

Hello again guys,

After finding the solution described above, i stumbled across another problem:

Apparently randomly some pages of the website fail to load, generating the
following errors:


[Sat Jan 14 23:40:09 2006] [error] [client 82.76.xxx.xx] PHP Notice:
Constant MAX_OPTIONS already defined in
/home/am/pgweb/portal/system/global/settings.php on line 21, referer:
http://pgsql.newsoftcontrol.ro:8888/
[Sat Jan 14 23:40:09 2006] [error] [client 82.76.xxx.xx1] PHP Notice:
Constant MIRROR_CELLS already defined in
/home/am/pgweb/portal/system/global/settings.php on line 24, referer:
http://pgsql.newsoftcontrol.ro:8888/
[Sat Jan 14 23:40:09 2006] [error] [client 82.76.xxx.xx] PHP Notice:
Constant DEBUG already defined in
/home/am/pgweb/portal/system/global/settings.php on line 27, referer:
http://pgsql.newsoftcontrol.ro:8888/
[Sat Jan 14 23:40:09 2006] [error] [client 82.76.xxx.xx] PHP Fatal
error:  Cannot redeclare database_connect() (previously declared in
/home/am/pgweb/portal/system/global/functions.database.php:13) in
/home/am/pgweb/portal/system/global/functions.database.php on line 13,
referer: http://pgsql.newsoftcontrol.ro:8888/


Sometimes,  if i click "refresh"  several times the page finally gets loaded.
What could be done to avoid this problem ?


Best wishes,
Adrian Maier

pgsql-www by date:

Previous
From: "John Hansen"
Date:
Subject: Re: Infrastructure monitoring
Next
From: "Dave Page"
Date:
Subject: Re: Infrastructure monitoring