[EMAIL PROTECTED] wrote:

I've continued plowing my way thru the 2nd edition
of PHP and MySQL Web Development by Welling and
Thomson. I've made it to chapter 24, where I've just
read that for this chapter's project I "will need to
have switched on magic quotes" or use addslashes()
and stripslashes().

So I checked via phpinfo() and found
magic_quotes_gpc "On", but magic_quotes_runtime and
magic_quotes_sybase both "Off".

Now I'm guessing that magic_quotes_runtime is the
one I need to have on, but is that so? I'm also
guessing that aside from using addslashes() and
stripslashes(), I could prob'ly turn on magic_quotes
in php_ini.

The book is talking about magic_quotes_gpc, which you say is already on. The "runtime" version applies to data coming _out_ of the database (which is usually kept off) and "sybase" refers to escaping single quotes with another single quote (instead of the normal backslash). If you're using MySQL, you don't need the "sybase" directive on.




--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com




-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to