X-Original-To: pgsql-www-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 1A6269DD8D4 for ; Sat, 14 Jan 2006 14:32:29 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 19842-08 for ; Sat, 14 Jan 2006 14:32:28 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.205]) by postgresql.org (Postfix) with ESMTP id 90DEB9DD8D6 for ; Sat, 14 Jan 2006 14:32:25 -0400 (AST) Received: by uproxy.gmail.com with SMTP id s2so236004uge for ; Sat, 14 Jan 2006 10:32:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YrJjEjb32GmvzJSsQ91rUgTe24EPsUR80wiyvspi3fDW/ndLgo2qcYWlUVWNJNzTvz/prnblpsDZtxt+OJV0eTvo9b1tBmWXhPlcpfVZDx8AkX0mqq3hi0r0X0fzEUGb+qpIayWI2TtvspqtP3RKMIGCToO8YOnE6B1PMDord6s= Received: by 10.48.4.9 with SMTP id 9mr136439nfd; Sat, 14 Jan 2006 10:32:25 -0800 (PST) Received: by 10.48.208.18 with HTTP; Sat, 14 Jan 2006 10:32:25 -0800 (PST) Message-ID: Date: Sat, 14 Jan 2006 20:32:25 +0200 From: Adrian Maier To: pgsql-www@postgresql.org Subject: Re: Path-ralated problem while setting up a local postgresql website In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <6BCB9D8A16AC4241919521715F4D8BCE92E9B0@algol.sollentuna.se> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.332 required=5 tests=[RCVD_IN_BL_SPAMCOP_NET=1.332] X-Spam-Score: 1.332 X-Spam-Level: * X-Archive-Number: 200601/96 X-Sequence-Number: 9284 On 1/11/06, Adrian Maier 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 probl= em: 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:=20 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:=20 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:=20 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 loade= d. What could be done to avoid this problem ? Best wishes, Adrian Maier