fatal errors

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Swede78
Forum Contributor
Posts: 198
Joined: Wed Mar 12, 2003 12:52 pm
Location: IL

fatal errors

Post by Swede78 »

I have two errors that keep coming up quite often in my error log.

The first is the "Fatal error: Maximum execution time of 30 seconds exceeded in..." error.
These seem to happen a lot, but only a tiny fraction of the number of hits I'm getting. The page and line number that they happen on are never consistent.

So, what I'm wondering is: will the error happen if someone just has a slow connection and it fails to download the page before 30 seconds or is this really that the server isn't processing the page quick enough? I don't understand how it could be the latter of the two. It happens on the simplest of pages.



My second most common error or warning is the "Unknown(): Failed opening 'file' for inclusion (include_path='path') in Unknown on line 0".
This is always followed by a line that states "(file): failed to create stream: No such file or directory in Unknown on line 0".
The weird thing about these, are that the file names shown are not ones that I've made a link to on any of my pages. It's like people are just trying random filenames and hoping that they're a real page. I'm getting some like "azugynokseg.php" and weird names like that.

Does anyone know why you get these type of warnings?


This second error brings me to another question: When you type in a web page ending in anything but .php, that doesn't exist, it gets the 404 error. However, when you type in a name of a non-existent web page with the extension .php, then it just comes up with a blank screen and says "done" in the status bar.

Why is that? And how do I make it give the 404 error?


Thank you in advance,
Swede
nincha
Forum Contributor
Posts: 191
Joined: Fri Mar 28, 2003 12:30 pm
Location: CA, USA

Post by nincha »

the 30 second run time error is oftenly the result of poor logic within the code itself. A logic error would most likly be neverending loop. So check all your loops and make sure it ends. The include path error is quite simple, either the file dose not exist or the dirctory to the file is wrong. And the last problem might be how the server is setup i think or how your browser is set.
Swede78
Forum Contributor
Posts: 198
Joined: Wed Mar 12, 2003 12:52 pm
Location: IL

Post by Swede78 »

Initially, I thought there was possibly a problem with my code, that was making it take forever. But, when I started looking at the files that it was happening in, I noticed that it would happen in files that had no loops, and even where there was no PHP code. So, I'm really just baffled on this one.

As for the include path errors... the thing was that I don't have any files that were calling up the included file names in the errors. It's like someone was just typing in random file names. Is that a sign of attempted hacking?
Post Reply