<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for PHP Help Coding Programming</title>
	<atom:link href="http://phpmagister.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://phpmagister.com</link>
	<description>Code PHP Ajax Wordpress Scripts Snnipets</description>
	<lastBuildDate>Sun, 20 May 2012 21:51:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>Comment on Symfony2 and Doctrine2 Product &amp; Images Mapping Not Efficient for Administration by Adam</title>
		<link>http://phpmagister.com/symfony2-and-doctrine2-product-images-mapping-not-efficient-for-administration-21870/#comment-35572</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Sun, 20 May 2012 21:51:14 +0000</pubDate>
		<guid isPermaLink="false">http://phpmagister.com/symfony2-and-doctrine2-product-images-mapping-not-efficient-for-administration-21870/#comment-35572</guid>
		<description>&lt;p&gt;Aayush,&lt;/p&gt;

&lt;p&gt;Any update on your progress with this problem?
I have a similar issue with &quot;Listings&quot; and &quot;Images&quot;. First, properly structuring the Doctrine relationships, and then within the form (similar to you).&lt;/p&gt;

&lt;p&gt;Each &quot;Listing&quot; may have multiple &quot;Images&quot;.&lt;/p&gt;

&lt;p&gt;Can you share any information that helped you in your case?&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Aayush,</p>
<p>Any update on your progress with this problem?<br />
I have a similar issue with &#8220;Listings&#8221; and &#8220;Images&#8221;. First, properly structuring the Doctrine relationships, and then within the form (similar to you).</p>
<p>Each &#8220;Listing&#8221; may have multiple &#8220;Images&#8221;.</p>
<p>Can you share any information that helped you in your case?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Retrieving the last insert id from MySql using PHP by Kenneth Spencer</title>
		<link>http://phpmagister.com/retrieving-the-last-insert-id-from-mysql-using-php-21186/#comment-35586</link>
		<dc:creator>Kenneth Spencer</dc:creator>
		<pubDate>Sun, 20 May 2012 21:50:42 +0000</pubDate>
		<guid isPermaLink="false">http://phpmagister.com/retrieving-the-last-insert-id-from-mysql-using-php-21186/#comment-35586</guid>
		<description>&lt;p&gt;&lt;a href=&quot;http://ca.php.net/manual/en/mysqli.insert-id.php&quot; rel=&quot;nofollow&quot;&gt;http://ca.php.net/manual/en/mysqli.insert-id.php&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;is the property you are looking for. It is completely reliable. &lt;/p&gt;

&lt;p&gt;mysql_insert_id (and all mysql_ functions) is deprecated. &lt;/p&gt;</description>
		<content:encoded><![CDATA[<p><a href="http://ca.php.net/manual/en/mysqli.insert-id.php" rel="nofollow">http://ca.php.net/manual/en/mysqli.insert-id.php</a></p>
<p>is the property you are looking for. It is completely reliable. </p>
<p>mysql_insert_id (and all mysql_ functions) is deprecated. </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How can I use prepared statements combined with Transactions with PHP? by Jeroen</title>
		<link>http://phpmagister.com/how-can-i-use-prepared-statements-combined-with-transactions-with-php-21132/#comment-35646</link>
		<dc:creator>Jeroen</dc:creator>
		<pubDate>Sun, 20 May 2012 21:12:09 +0000</pubDate>
		<guid isPermaLink="false">http://phpmagister.com/how-can-i-use-prepared-statements-combined-with-transactions-with-php-21132/#comment-35646</guid>
		<description>&lt;pre&gt;&lt;code&gt;try 
{
    $cnx = new PDO ($dsn,$dbuser,$dbpass);   
    $cnx-&gt;setAttribute (PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

    $cnx-&gt;beginTransaction ();

    $stmt = $cnx-&gt;prepare (&quot;SELECT * FROM users WHERE username=?&quot;);
    $stmt-&gt;execute(array($username));

    $cnx-&gt;commit();

    while ($row = $stmt-&gt;fetch (PDO::FETCH_OBJ)){
        echo $row-&gt;userid;
    }
}

catch (Exception $e) { 
    if (isset ($cnx)) 
        $cnx-&gt;rollback ();
       echo &quot;Error:  &quot; . $e; 
    }
}
&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<pre><code>try
{
    $cnx = new PDO ($dsn,$dbuser,$dbpass);
    $cnx-&gt;setAttribute (PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

    $cnx-&gt;beginTransaction ();

    $stmt = $cnx-&gt;prepare ("SELECT * FROM users WHERE username=?");
    $stmt-&gt;execute(array($username));

    $cnx-&gt;commit();

    while ($row = $stmt-&gt;fetch (PDO::FETCH_OBJ)){
        echo $row-&gt;userid;
    }
}

catch (Exception $e) {
    if (isset ($cnx))
        $cnx-&gt;rollback ();
       echo "Error:  " . $e;
    }
}
</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on why is PHP hanging, when a bash call forks by Frosty Z</title>
		<link>http://phpmagister.com/why-is-php-hanging-when-a-bash-call-forks-20505/#comment-35530</link>
		<dc:creator>Frosty Z</dc:creator>
		<pubDate>Sun, 20 May 2012 20:59:47 +0000</pubDate>
		<guid isPermaLink="false">http://phpmagister.com/why-is-php-hanging-when-a-bash-call-forks-20505/#comment-35530</guid>
		<description>&lt;p&gt;Maybe create another HTTP process by using an Ajax call to another PHP script, which task will be to launch asynchronously your &lt;code&gt;sleep 30&lt;/code&gt; command, or whatever you want, on the server.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Maybe create another HTTP process by using an Ajax call to another PHP script, which task will be to launch asynchronously your <code>sleep 30</code> command, or whatever you want, on the server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Is there a difference between i==0 and 0==i? [closed] by Pierre</title>
		<link>http://phpmagister.com/is-there-a-difference-between-i0-and-0i-closed-21466/#comment-35301</link>
		<dc:creator>Pierre</dc:creator>
		<pubDate>Sun, 20 May 2012 20:53:15 +0000</pubDate>
		<guid isPermaLink="false">http://phpmagister.com/is-there-a-difference-between-i0-and-0i-closed-21466/#comment-35301</guid>
		<description>&lt;p&gt;no difference, some people prefer the second one to catch the common mistake of doing 
assignment (&lt;code&gt;=&lt;/code&gt;) instead of equality test (&lt;code&gt;==&lt;/code&gt;) &lt;/p&gt;

&lt;p&gt;&lt;code&gt;0 = i&lt;/code&gt; would fail at compilation&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>no difference, some people prefer the second one to catch the common mistake of doing<br />
assignment (<code>=</code>) instead of equality test (<code>==</code>) </p>
<p><code>0 = i</code> would fail at compilation</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Mysql syntax error issue by Joseph Ledesma Gabito</title>
		<link>http://phpmagister.com/mysql-syntax-error-issue-22328/#comment-35546</link>
		<dc:creator>Joseph Ledesma Gabito</dc:creator>
		<pubDate>Sun, 20 May 2012 20:49:49 +0000</pubDate>
		<guid isPermaLink="false">http://phpmagister.com/mysql-syntax-error-issue-22328/#comment-35546</guid>
		<description>&lt;p&gt;Try:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$sql_update = mysql_query(&quot;UPDATE addcontacts SET surename = .$surname_g., `group` = .$g_g. WHERE id = .$id.&quot;);
&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Try:</p>
<pre><code>$sql_update = mysql_query("UPDATE addcontacts SET surename = .$surname_g., `group` = .$g_g. WHERE id = .$id.");
</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Removing URL Extensions by Boyd</title>
		<link>http://phpmagister.com/removing-url-extensions-21544/#comment-35555</link>
		<dc:creator>Boyd</dc:creator>
		<pubDate>Sun, 20 May 2012 20:38:23 +0000</pubDate>
		<guid isPermaLink="false">http://phpmagister.com/removing-url-extensions-21544/#comment-35555</guid>
		<description>&lt;p&gt;You need to use HTACCESS mod_rewrite for this.&lt;/p&gt;

&lt;p&gt;Roughly:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create &lt;code&gt;.htaccess&lt;/code&gt; (exact, only an extension without filename) in the root of your website  &lt;/li&gt;
&lt;li&gt;Please this code in it:
&lt;pre&gt;&lt;code&gt;RewriteEngine On
RewriteBase /
RewriteRule /(.*?)$ /$1.php&lt;/pre&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;</description>
		<content:encoded><![CDATA[<p>You need to use HTACCESS mod_rewrite for this.</p>
<p>Roughly:</p>
<ol>
<li>Create <code>.htaccess</code> (exact, only an extension without filename) in the root of your website  </li>
<li>Please this code in it:
<pre><code>RewriteEngine On
RewriteBase /
RewriteRule /(.*?)$ /$1.php</code></pre>
</li>
</ol>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sending bulk email in PHP by rehanift</title>
		<link>http://phpmagister.com/sending-bulk-email-in-php-21239/#comment-35640</link>
		<dc:creator>rehanift</dc:creator>
		<pubDate>Sun, 20 May 2012 20:36:55 +0000</pubDate>
		<guid isPermaLink="false">http://phpmagister.com/sending-bulk-email-in-php-21239/#comment-35640</guid>
		<description>&lt;p&gt;You can also use &lt;a href=&quot;http://swiftmailer.org/&quot;&gt;SwiftMailer&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Please also look at a similar post &lt;a href=&quot;http://stackoverflow.com/questions/1118154/sending-mass-email-using-php/1118190#1118190&quot;&gt;here&lt;/a&gt;&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>You can also use <a href="http://swiftmailer.org/">SwiftMailer</a></p>
<p>Please also look at a similar post <a href="http://stackoverflow.com/questions/1118154/sending-mass-email-using-php/1118190#1118190">here</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on RESTful webservice architecture and tokens by Michal</title>
		<link>http://phpmagister.com/restful-webservice-architecture-and-tokens-21234/#comment-35623</link>
		<dc:creator>Michal</dc:creator>
		<pubDate>Sun, 20 May 2012 20:31:22 +0000</pubDate>
		<guid isPermaLink="false">http://phpmagister.com/restful-webservice-architecture-and-tokens-21234/#comment-35623</guid>
		<description>&lt;p&gt;You can set up for example the header to pass username and password and then read them and validate on server. You could add some api secret key. For example:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;//pseudocode
$request-&gt;Headers[&quot;X-Auth-User&quot;] = $user;
$request-&gt;Headers[&quot;X-Auth-Key&quot;] = $key;
$request-&gt;send(); //curl for example
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Then you can set up additional firewall to handle authenticaton on serv via securitybundle.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>You can set up for example the header to pass username and password and then read them and validate on server. You could add some api secret key. For example:</p>
<pre><code>//pseudocode
$request-&gt;Headers["X-Auth-User"] = $user;
$request-&gt;Headers["X-Auth-Key"] = $key;
$request-&gt;send(); //curl for example
</code></pre>
<p>Then you can set up additional firewall to handle authenticaton on serv via securitybundle.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Security between Android and PHP webservice by tasomaniac</title>
		<link>http://phpmagister.com/security-between-android-and-php-webservice-18791/#comment-35628</link>
		<dc:creator>tasomaniac</dc:creator>
		<pubDate>Sun, 20 May 2012 20:25:28 +0000</pubDate>
		<guid isPermaLink="false">http://phpmagister.com/security-between-android-and-php-webservice-18791/#comment-35628</guid>
		<description>&lt;p&gt;I have solved my problem. What i need is to do signature verification on the server side. I just need to send the signature and the signed data to my server.
No one can trick these data. They are coming directly from google.
Once the signature verification is complete I just added the user to my mysql table.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>I have solved my problem. What i need is to do signature verification on the server side. I just need to send the signature and the signed data to my server.<br />
No one can trick these data. They are coming directly from google.<br />
Once the signature verification is complete I just added the user to my mysql table.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

