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? Quote Link to comment Share on other sites More sharing options...
aim25 Posted August 15, 2007 Share Posted August 15, 2007 Post some code please. Quote Link to comment 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). Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.