|
-
Mar 4th, 2008, 09:21 PM
#1
Thread Starter
Lively Member
[RESOLVED] Fatal Error: cannot Redeclare function
whats with this error? can anybody explain this to me?
Code:
Fatal error: Cannot redeclare checkaccess() (previously declared in D:\xampp\htdocs\Cmi-Act\pageChecker.php:2)
-
Mar 4th, 2008, 11:36 PM
#2
Re: Fatal Error: cannot Redeclare function
You're declaring a function that already exists in the script scope.
Most likely, the line indicated there includes a file which declares the function.
Often caused by using include or require rather than include_once or require_once.
-
Mar 14th, 2008, 07:03 PM
#3
Thread Starter
Lively Member
Re: [RESOLVED] Fatal Error: cannot Redeclare function
solved the problem. i just put exit() to the line next to my includes.
-
Mar 14th, 2008, 08:51 PM
#4
Re: [RESOLVED] Fatal Error: cannot Redeclare function
The oil pressure warning light on your car dashboard comes on. What do you do?
Your solution is akin to opening the dashboard and unplugging the warning light.
Use include_once or require_once.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|