<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[php protezioni da sql injection]]></title><description><![CDATA[<p dir="auto">salve ragazzi, avrei bisogno di realizzare una funzione per proteggermi da sql injection voi cosa consigliate?</p>
<p dir="auto">vi posto la funzione che ho fatto io, mi dite se va bene e se posso aggiungere altro?</p>
<pre><code class="language-php">function Filtro($stringa){
 $stringa = str_replace('?','',$stringa);
$stringa = str_replace('"','\'',$stringa);
 $stringa = str_replace('?','\'',$stringa); 
$stringa=mysql_real_escape_string($stringa);
 $stringa = str_replace('&lt;','',$stringa);
 $stringa = str_replace('&gt;','',$stringa);  
 return $stringa;}
</code></pre>
]]></description><link>https://dev.connect.gt/topic/183457/php-protezioni-da-sql-injection</link><generator>RSS for Node</generator><lastBuildDate>Sat, 28 Nov 2026 04:18:16 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/183457.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 23 Jan 2013 16:46:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to php protezioni da sql injection on Thu, 24 Jan 2013 09:47:25 GMT]]></title><description><![CDATA[<p dir="auto">Da SQL INJECTION no, è sufficiente utilizzare quella funzione.</p>
]]></description><link>https://dev.connect.gt/post/1106812</link><guid isPermaLink="true">https://dev.connect.gt/post/1106812</guid><dc:creator><![CDATA[thedarkita]]></dc:creator><pubDate>Thu, 24 Jan 2013 09:47:25 GMT</pubDate></item><item><title><![CDATA[Reply to php protezioni da sql injection on Thu, 24 Jan 2013 09:15:53 GMT]]></title><description><![CDATA[<p dir="auto">ma ci sono altri accorgimenti da fare per proteggersi?</p>
]]></description><link>https://dev.connect.gt/post/1106816</link><guid isPermaLink="true">https://dev.connect.gt/post/1106816</guid><dc:creator><![CDATA[angelo85ct]]></dc:creator><pubDate>Thu, 24 Jan 2013 09:15:53 GMT</pubDate></item><item><title><![CDATA[Reply to php protezioni da sql injection on Wed, 23 Jan 2013 19:44:09 GMT]]></title><description><![CDATA[<p dir="auto">No, serve solo a mettere l'escape per evitare un SQL INEJCTION, ma i dati vengono inseriti normalmente.</p>
]]></description><link>https://dev.connect.gt/post/1106811</link><guid isPermaLink="true">https://dev.connect.gt/post/1106811</guid><dc:creator><![CDATA[thedarkita]]></dc:creator><pubDate>Wed, 23 Jan 2013 19:44:09 GMT</pubDate></item><item><title><![CDATA[Reply to php protezioni da sql injection on Wed, 23 Jan 2013 17:52:04 GMT]]></title><description><![CDATA[<p dir="auto">utilizzando questo: mysql_real_escape_string</p>
<p dir="auto">quando leggo poi da db devo fare qualche altra codifica? idem se quello che prendo dal form lo devo mandandare tramite email?</p>
]]></description><link>https://dev.connect.gt/post/1106815</link><guid isPermaLink="true">https://dev.connect.gt/post/1106815</guid><dc:creator><![CDATA[angelo85ct]]></dc:creator><pubDate>Wed, 23 Jan 2013 17:52:04 GMT</pubDate></item><item><title><![CDATA[Reply to php protezioni da sql injection on Wed, 23 Jan 2013 17:04:13 GMT]]></title><description><![CDATA[<p dir="auto">Ciao,<br />
utilizzare mysql_real_escape_string è sufficiente.</p>
]]></description><link>https://dev.connect.gt/post/1106810</link><guid isPermaLink="true">https://dev.connect.gt/post/1106810</guid><dc:creator><![CDATA[thedarkita]]></dc:creator><pubDate>Wed, 23 Jan 2013 17:04:13 GMT</pubDate></item></channel></rss>