aQ Posted August 15, 2007 Share Posted August 15, 2007 Hello! I've got a problem with one of my functions: Fatal error: Cannot redeclare checkuser() in /path/to/functions.php on line 5 Checkuser is used to check that the user is a real user. I haven't included it more than once, and the error doesn't display at every page-load, only sometimes. Does anyone know what this can be? Link to comment https://forums.phpfreaks.com/topic/65090-fatal-error-cannot-redeclare-checkuser-in-path/ Share on other sites More sharing options...
aim25 Posted August 15, 2007 Share Posted August 15, 2007 Post some code please. Link to comment https://forums.phpfreaks.com/topic/65090-fatal-error-cannot-redeclare-checkuser-in-path/#findComment-324847 Share on other sites More sharing options...
The Little Guy Posted August 15, 2007 Share Posted August 15, 2007 I would reccomend placing all your functions in one file, then include that file on every page (the very first line of code). Link to comment https://forums.phpfreaks.com/topic/65090-fatal-error-cannot-redeclare-checkuser-in-path/#findComment-324849 Share on other sites More sharing options...
aQ Posted August 15, 2007 Author Share Posted August 15, 2007 Hi again! I've got a config.php file with some mysql-connection info etc. This file also contains the inclusion of my functions.php (containing all my functions). The index.php is starting with "include_once('config.php');" which I think also will include the functions file. Did that help? Link to comment https://forums.phpfreaks.com/topic/65090-fatal-error-cannot-redeclare-checkuser-in-path/#findComment-324872 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.