Re: [phplib] redeclare page_open() From: nathan r. hruby (nathan <email protected>)
Date: 07/25/01

On Wed, 25 Jul 2001, chris wrote:

> Hi,
> I'm new with PHPLIB. The installation worked fine.
>
> I'm testing sessions using PHPLIB and have include("page.inc"); in my
> script but get the following error when I run it:
>
> Fatal error: Cannot redeclare page_open() in
> c:\inetpub\wwwroot\php\page.inc on line 12
>

You've double included page.inc somewhere or your app is using the
function page_open()

You really shouldn't be manually doing include(page.inc)

If you've installed as per the phplib docs using the php.ini
auto_prepend_file setting, you don't need include anything as php has done
this for you already.

If you're doing it manually (eg: have no access to php.ini or no desire to
edit it), you need to include('prepend.inc') instead of page.inc directly,
as prepend will setup your environemtn and objects for you. Calling
page.inc by hand will have unpredictable results.

Make sense?

-n

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
nathan hruby / digital statement
nathan <email protected>
http://www.dstatement.com/

Public GPG key can be found at: http://www.dstatement.com/nathan-gpg-key.txt ED54 9A5E 132D BD01 9103 EEF3 E1B9 4738 EC90 801B -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

-- Abbestellen mit Mail an: phplib-unsubscribe <email protected> Kommandoliste mit Mail an: phplib-help <email protected>