Thread: PHP Question
View Single Post
Old 04-19-2005, 05:30 PM  
pstation
Confirmed User
 
Join Date: Jul 2003
Location: chicago
Posts: 1,135
Quote:
Originally Posted by Repetitive Monkey
With the suggestions already added in regards to persistent connections and the setting of an index on the "domain" column, I don't have anything to add but a note of the glaring lack of error handling in your script. It shouldn't be a problem for the diligent webmaster, but there is something about the missing safety procedures that irks me any way.

I always use
if(@){
// continue
}else{
// handle as appropriate, whether by continued operation under alternative means or by throwing a custom error
}
it's probably better to use the set_error_handler function because otherwise your code usually becomes cluttered with the error handling
pstation is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote