RE: php help

  • From: "Humberto Rodriguez" <sub@xxxxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Sat, 22 Nov 2008 10:16:00 -0500

Try using the function include_once instead of include.  Thus:

Include_once "include/database.inc.php";

HTH,

Humberto


-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Tyler
Littlefield
Sent: Saturday, November 22, 2008 10:08 AM
To: programmingblind@xxxxxxxxxxxxx
Subject: php help

Hello,
I'm writing a login system.
In my home.php page, I do something like:
include "include/database.inc.php";
this works (I see the output of the title), but I get an error:
Fatal error: Cannot redeclare isuseravailable() (previously declared in 
/home/.lutece/tysdomain/tysdomain/social/include/database.inc.php:5) in 
include/database.inc.php
on line 5
basically it's saying it can't redeclare it on the same line as it was 
declared?
Any ideas?
I have only included it once, also.

Thanks,
Tyler Littlefield
email: tyler@xxxxxxxxxxxxx
web: tysdomain-com
Visit for quality software and web design.
skype: st8amnd2005

__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind


__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

  • References:

Other related posts: