Hi ,
how's everybody, hope f9 .... But i m not well, cause of this <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> problem....
Kindly solve it :
i got an error in "lib.php" basically in this file i've defined common functionality of my
website in functions now i 've include it in header of my website because header is include
at each page now i got the following error ...
Fatal error: Cannot redeclare convertforstorage() (previously declared in
/home/content/s/u/m/sumitdua/html/test/includes/lib.php:2) in
/home/content/s/u/m/sumitdua/html/test/includes/lib.php on line 2
i m fed up because in "lib.php" the method "convertforstorage()" is declared just for one
time. And one thing more i 've tried to comment out this function in "lib.php" after that i
've found error on next defined method.i.e) "convertfordisplay()" and if i comment it too,
then found on next method and so on..........
Is there any technical reason for that ... kindly help me i m really worried about this
problem.
Thanks in Advance
regards
Waqas
[Solved] Problem regarding Redeclaration of a function
Moderator: General Moderators
-
waqas_punjabian
- Forum Commoner
- Posts: 67
- Joined: Wed Aug 10, 2005 9:53 am
[Solved] Problem regarding Redeclaration of a function
Last edited by waqas_punjabian on Fri Aug 12, 2005 2:11 am, edited 1 time in total.
Re: Problem regarding Redeclaration of a function
Are using include_once() or require_once() as opposed to include(); requrie();. That might solve your problem as well.waqas@balianti.com wrote:Hi ,
i got an error in "lib.php" basically in this file i've defined common functionality of my
website in functions now i 've include it in header of my website because header is include
-
waqas_punjabian
- Forum Commoner
- Posts: 67
- Joined: Wed Aug 10, 2005 9:53 am
Thanks U all of gr88888 buddiesssss
Hurraaahhhhhhhh !!!!
Error have been solved, Yeah, i 've used "require_once()" instead of "include()" ....... and this <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> 've been solved....
Once again thanxxxx a lot
Ba Bye
Error have been solved, Yeah, i 've used "require_once()" instead of "include()" ....... and this <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> 've been solved....
Once again thanxxxx a lot
Ba Bye
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
watch your language waqas@balianti.com...
- CoderGoblin
- DevNet Resident
- Posts: 1425
- Joined: Tue Mar 16, 2004 10:03 am
- Location: Aachen, Germany