I personally think that magic_quotes should be left off.  I think
it is the responsibility of the coder to properly escape any
user-supplied input.  I use ADoDB and it does have a function to
do this.<br><br><div><span class="gmail_quote">On 8/8/05, <b class="gmail_sendername">Barry Von Ahsen</b> &lt;<a href="mailto:barry@vonahsen.com">barry@vonahsen.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I personally detest magicquotes = on for the previously mentioned reasons<br><br>the only gotcha is that then you do have to protect you sql strings, but<br>php_mysql does this, and as Tony said, most abstraction layers (any good
<br>one, at least) should have a way to do it.&nbsp;&nbsp;(I also work with an O'Brien<br>and an O'Hara, so I may be more jaded than most :)<br><br>-barry<br><br><br>Tony Bibbs wrote:<br>&gt; For security reasons register_globals should be turned off, though as
<br>&gt; Dave mentioned, many older PHP apps require them.<br>&gt;<br>&gt; I prefer magic quotes to be turned off as well but that's simply because<br>&gt; we use creole for database abstraction and it handles the quotes for us.
<br>&gt;&nbsp;&nbsp;We've seen issues where PHP code gets ugly when you have a bunch of<br>&gt; addslashes/stripslashes so it's best to leave that to something else<br>&gt; (like you abstraction layer).<br>&gt;<br>&gt; Similarly PEAR::DB supports prepared statements which, if used, get you
<br>&gt; out of the business of worrying about quotes.<br>&gt;<br>&gt; --Tony<br>&gt;<br>&gt; Dave J. Hala Jr. wrote:<br>&gt;<br>&gt;&gt; Register globals off, is prefferred, unless you have some old php apps<br>&gt;&gt; that didn't make use of $_POST&nbsp;&nbsp;when posting variables.
<br>&gt;&gt;<br>&gt;&gt; I believe globals off is now the default. You'll know right away if you<br>&gt;&gt; got apps that require globals on. :)<br>&gt;&gt;<br>&gt;&gt; If you do, you may want to consider putting them on your list of apps
<br>&gt;&gt; that to be &quot;phased out/rewrote&quot; etc.<br>&gt;&gt;<br>&gt;&gt; :) Dave<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; On Mon, 2005-08-08 at 09:34, Chris Hettinger wrote:<br>&gt;&gt;<br>&gt;&gt;&gt; magic_quotes_gpc and register_globals .... On or Off ??
<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; I believe that, and correct me if I am wrong, most will say Magic Quotes<br>&gt;&gt;&gt; = On and Registered Globals = Off.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Arguements one way or the other?
<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; -ch<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; _______________________________________________<br>&gt;&gt;&gt; ciapug mailing list<br>&gt;&gt;&gt; <a href="mailto:ciapug@cialug.org">
ciapug@cialug.org</a><br>&gt;&gt;&gt; <a href="http://cialug.org/mailman/listinfo/ciapug">http://cialug.org/mailman/listinfo/ciapug</a><br>&gt;<br>&gt; _______________________________________________<br>&gt; ciapug mailing list
<br>&gt; <a href="mailto:ciapug@cialug.org">ciapug@cialug.org</a><br>&gt; <a href="http://cialug.org/mailman/listinfo/ciapug">http://cialug.org/mailman/listinfo/ciapug</a><br><br><br>_______________________________________________
<br>ciapug mailing list<br><a href="mailto:ciapug@cialug.org">ciapug@cialug.org</a><br><a href="http://cialug.org/mailman/listinfo/ciapug">http://cialug.org/mailman/listinfo/ciapug</a><br></blockquote></div><br>