Fatal error: Maximum execution time of 30 seconds exceeded

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Fatal error: Maximum execution time of 30 seconds exceeded

Postby Echo89 » 11. October 2012 05:59

XAMPP Version: 1.8.1
Control panel version: 3.1.0
Windows version: Windows XP Pro

Problem:

Well, this morning I went to continue with my ventures with PHP, and index.php just would not load, so I decided to leave it. Then it gave this error. Apparently on this line:

Code: Select all
if(!defined("INCLUDE"))


Which is very odd, all it does if it is not defined is:

Code: Select all
die("You cannot access this file directly.");


And very rarely, it will load, but it takes AGES! I have restarted Apache, MySQL (And my computer) many times to no avail. But the strange thing is, it was working last night, and I have changed nothing overnight.

There are no errors in the Apache error log that would indicate why this is happening.

Thanks in advance!
Echo89
 
Posts: 3
Joined: 11. October 2012 05:50
Operating System: Windows XP Pro

Re: Fatal error: Maximum execution time of 30 seconds exceed

Postby Echo89 » 14. October 2012 21:47

Anybody?
Echo89
 
Posts: 3
Joined: 11. October 2012 05:50
Operating System: Windows XP Pro

Re: Fatal error: Maximum execution time of 30 seconds exceed

Postby Altrea » 14. October 2012 22:01

Hi Echo89 (there is ALWAYS time for a short salutation, especially if you are asking for help on a community board. It's a matter of politeness),

If i make a file with just this contents
Code: Select all
<?php
define("INCLUDE", "Test");
if(!defined("INCLUDE"))
   die("You cannot access this file directly.");
echo "Success";


it runs very well with and without the define().
So the reason must be somewhere else.
But noone can know exept the one who knows everything about the script.

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Fatal error: Maximum execution time of 30 seconds exceed

Postby Echo89 » 17. October 2012 22:59

But the thing is it was working and then it wasn't, I had changed nothing.
Echo89
 
Posts: 3
Joined: 11. October 2012 05:50
Operating System: Windows XP Pro


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 73 guests