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?
PHP Redirecting
Hello everyone. Is there a way to redirect people to pages within a statement in PHP? Since there is output before this redirect i cant use the header function.Thnx for your time
how to make database item unique
Hey guys,is it possible to do this:I have the database item $title being pulled for the title and the actual clickable part of a link.Is it possible to make the $title in the link title unique?I ask
Error querying database.
I get the above error when trying to insert some values to a datatable.Here's the code :Code: $dbc = mysqli_connect('127.0.0.1:3306', 'root', 'xxxx', 'aliendatabase') or die('Error connecting to
onclick problem
I have <input type="text" name="message"><a href=page2.php>click here</a> Can i parse the value whatever written in the textbox on url
Logic question
im wondering what's the best method to do the above list:it is for alliance @ MMORPG game -the administrator of alliance have 10 slots for creating ranks ... each rank have it's own permissions (in
Casting Decimals in Oracle
This code worked as a query in DB2, but I am not sure what the syntax is for casting decimals in Oracle:
Is it possible to view php source code??
Hi AllI was just wondering if it's possible to view a websites php source code? I know that php is a server side scripting language and that it is processed at the server and the results are sent
xml
<?phpecho "<h1>XML Articles</h1>";$home="http://xml.x-alt.com/";// load the studentphones.xml file$channel =
Implementing Single Sign-On using SAML 1.1, x.509, LDAP in C#.net
Hi,
Calander layout
Hi i know this sounds like a simple question but i cant find the answer to it anywhere i have added a simple calander tool to the page and added some styles to it but i want to move the month name