grafeety Posted August 5, 2010 Share Posted August 5, 2010 Hi there, I have a local server set up on my computer which I have used before and it worked flawlessly. It is running apache with PHPand mySQL set up as services. Recently I attempted to copy a project I have worked on at school onto my server. I have the database up and running, however when I try to run a PHP file it gives me the error: Fatal error: Cannot redeclare getText() in C:\Server\htdocs\projects\tournament\includes\functions.php on line 20 When I rename that function (which I know is not being redeclared) I get a browser error: This webpage is not available. The webpage at http://localhost/projects/tournament/index.php might be temporarily down or it may have moved permanently to a new web address. More information on this error Below is the original error message Error 101 (net::ERR_CONNECTION_RESET): Unknown error. Has anybody else experienced this error and have a solution to fix it? My guess is that it has to do with the function gettext() being available on this machine but not on the machine at school, however I thought PHP was case sensitive? Link to comment https://forums.phpfreaks.com/topic/209865-error-101-in-combination-with-fatal-error-cannot-redeclare-function/ Share on other sites More sharing options...
Pikachu2000 Posted August 5, 2010 Share Posted August 5, 2010 Variable names are case-sensitive, functions are not. Link to comment https://forums.phpfreaks.com/topic/209865-error-101-in-combination-with-fatal-error-cannot-redeclare-function/#findComment-1095435 Share on other sites More sharing options...
grafeety Posted August 5, 2010 Author Share Posted August 5, 2010 Hmm, alright I will have to investigate on the other error then. I have a hunch it is probably an apache error. Link to comment https://forums.phpfreaks.com/topic/209865-error-101-in-combination-with-fatal-error-cannot-redeclare-function/#findComment-1095608 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.