Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 14:17

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



PHP OOP class problem..

Discussion on PHP OOP class problem.. within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
Ŧєคгlєรร's Avatar
 
elite*gold: 0
Join Date: Jun 2013
Posts: 153
Received Thanks: 55
PHP OOP class problem..

Hi, I got pretty bad problem with php.
Here is some of my code.
PHP Code:
$cfg = new Configuration;
class 
Configuration {
public 
$language "en"//en = english de = german

Then after upload I got error like
Code:
Cannot redeclare class Configuration in /var/www/strona/config/application.php on line 10
Line 10 = class Configuration. Did I do any mistake, please anwser. Thanks, Tearless.

#Fixed to close.
Ŧєคгlєรร is offline  
Old 06/15/2013, 17:02   #2
 
PseudoPsycho's Avatar
 
elite*gold: 1715
Join Date: Dec 2011
Posts: 672
Received Thanks: 207
The error means that you have already declared that class.
Do you include the containing file? Then try to use include_once.
If not try to rename the class.
PseudoPsycho is offline  
Old 06/15/2013, 17:58   #3
 
Mikesch01's Avatar
 
elite*gold: 203
Join Date: Sep 2007
Posts: 732
Received Thanks: 190
Quote:
Originally Posted by Ŧєคгlєรร View Post
#Fixed to close.
That means to me that he/she already solved it.
Mikesch01 is offline  
Old 06/15/2013, 18:48   #4
 
PseudoPsycho's Avatar
 
elite*gold: 1715
Join Date: Dec 2011
Posts: 672
Received Thanks: 207
Quote:
Originally Posted by Mikesch01 View Post
That means to me that he/she already solved it.
I think it hasn't already been there when I posted my answer...
But who cares? Now the problem seems to be solved.
PseudoPsycho is offline  
Reply


Similar Threads Similar Threads
texture problem exe, Alo + new class
10/11/2011 - Dekaron Private Server - 0 Replies
Hi. I have problem with texture on aloken + new classes. my code looks like this: 00B8FD59 80FA 0B CMP DL,0B 00B8FD5C 74 26 JE SHORT dekaron.00B8FD84 00B8FD5E 80FA 0A CMP DL,0A 00B8FD61 74 1B JE SHORT dekaron.00B8FD7E 00B8FD63 80FA 06 CMP DL,6 00B8FD66 74 10 JE SHORT dekaron.00B8FD78
About Class Online i got problem can anyone help ?
10/08/2011 - SRO Private Server - 1 Replies
Windows7 ultimate problem: when iam in game in crowded placeses some time i found the game freezes and after min it give me error and close client !! can anyone help Sorry for bad english
[HELP] Problem with BigInteger class
02/16/2011 - CO2 Private Server - 4 Replies
Heya! DON'T POST STUPID ANSWERS! I REALLY WANT HELP! For handle the new effects into client its a value with 128bits now... so like a friend (pro4ever) said, i builded the BigInteger class with some search help heh :D and now i'm getting a problem while trying to set it to a bitarray... so i would ask some help with it... Let's check the codes.
[Problem]Rogue Class config
06/08/2010 - WoW Bots - 3 Replies
heyho Also hab die Rogue class config so bearbeitet das auf N4 Gouge ist und auf N% Slice and Dice nun ist mein problem der bot benutz die attacken irgendwie nicht. Greeez Neo
[Help] Problem Multi Class Bot
07/09/2008 - Conquer Online 2 - 3 Replies
Heloo .. ! this bot is not attack monsters good my char always try to skip. hear somethinks, i stay my char with a bot and i go for 3 hoar when i come back i see my char up only 4% and i level 70 and i use 25 pots and but dont die. he always move he dont kill some monsters. this bot need to be like this ??? this bot is a bad ? please help me



All times are GMT +1. The time now is 14:18.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.