Re: Single quotes verses double quotes default behavior with DW --------> (Pretty much 0T )

From: Date: Wed, 28 Jun 2006 11:31:49 +0000
Subject: Re: Single quotes verses double quotes default behavior with DW --------> (Pretty much 0T )
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-238784@lists.php.net to get a copy of this message
Ryan A wrote: > Hey, > Am really starting to like your emails on this list, > its different to say the least! seeing as you didn't threat to DoS my server I guess I'm not trying hard enough to be different ;-) > >>> mysql_escape_string does look interesting but >> thats >>> again putting the strain in the script which I am >> wtf? that is just plain silly. > > Why is it plain silly? if the text to be entered is a > large html page with a lot of class="value" and font > color="red" class="blah" etc it can mean a lot of > escaping/processing for the block of data your going to enter in the db it's a single call to the function. and the cpu cycles required is peanuts in real terms. it's kind of similar to a call to output_add_rewrite_var() which essentially buffers and parse through the complete output of a given script - something which works fine under normal conditions (e.g. your not in the realms of yahoo-like levels of page views). if you have 1000's of users inserting/updating 'large' chunks of HTML all day ever day then you probably have a different problem - one that probably requires a server farm or something - but if your in that realm the not using of msyql_real_escape_string() will still not be the solution.

« previous php.general (#238784) next »