I have 6 files, and two of them do not seem to want to play well. I keep getting a "Cannot redeclare class" error.
** edit **
I know its these 2 files, because when i comment out the include for login.php, the error goes away.
**end edit**
The full error:
Fatal error: Cannot redeclare class Base in coreBase.php on line 7
Base.php
Code: <?php
/**
* Base.php is the base class for all functions.
*
*/
class Base {
function __construct() {
include("Admin.php");
include("Feed.php");
include("Login.php");
include("Session.php");
include("SQLManager.php");
include("Twitter.php");
}
function __destruct() {
}
}
?>
Login.php
Code: <?php
/**
* Login.php is the class for all Application login functions.
*
*/
class Login extends Base {
function __construct() {
}
function Login() {
}
function Logout() {
}
function __destruct() {
}
}
?>
All of the files that are included in the Base __construct, extend Base.
Anyone have any ideas?
Transferring session variables into MySQL
I am trying to transfer $_SESSION variables into MySQL. However there is an error in my MySQL statements.This is the error that I receive:Unable to execute the query.Error code 1136: Column count
Restricted access to sub-folder in iis6 doesn't work?
Basically I'm trying to add restriction to sub-folder (which contains pdf) in web.config for iis6 as below.It doesn't work at all. <system.web> <authentication
Notice Undefined index: reset/ Attempting to redirect, works, but get a notice
Full Header.php is:Code: [Select]<?php$reset= false;$reset= strip_tags($_GET["reset"]); //THIS IS LINE 3if(empty($reset)) $reset = false;if($reset==NULL)
Date/Time and Checkbox
Hi Everyone, I am trying to figure out how to insert the current date and time into the database.Scenario:1) user enter my site and fills up the forum2) hits the submit button3)
All possible combinations of String in PL/SQL
Hi All,
How to copy a part of a vector in a raw memory
Hi,
[newb] Image hosting help.
Hey there, I'm new to php, I know some basics and i can code PWN, I'm only 14 but I'm interested in PHP, I have bought a dedicated server, (With unlimited bandwidth of corse, And 2tb Hard drives), And
cURL proxy
Okay here is the thing... i know how to add proxysCode: curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);curl_setopt($ch, CURLOPT_PROXY,"[i][b]PROXYHERE[/b][/i]");Here are my questions..
Date help - fetch dates for Mondays between xxx and yyy?
Does anyone know the best way to do this? I have two dates, say:2010-01-26 and 2010-05-30and I want to return the dates of all the Mondays between them:2010-02-012010-02-082010-02-15....etc.Thanks
how to remove in php string display
My code is