<?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 Jeremy Cook</title> <atom:link href="http://jeremycook.ca/comments/feed/" rel="self" type="application/rss+xml" /><link>http://jeremycook.ca</link> <description>Random musings on web development and PHP</description> <lastBuildDate>Sat, 28 Aug 2010 12:01:22 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Comment on Creating Professional Documents the Easy Way by Jeremy Cook</title><link>http://jeremycook.ca/2010/05/16/creating-professional-documents-the-easy-way/comment-page-1/#comment-354</link> <dc:creator>Jeremy Cook</dc:creator> <pubDate>Sat, 28 Aug 2010 12:01:22 +0000</pubDate> <guid isPermaLink="false">http://jeremycook.ca/?p=88#comment-354</guid> <description>Hi Fatih,I don&#039;t think this is possible. LiveDocx works on the basis of placeholder fields being replaced with content at runtime. Obviously without a template there wouldn&#039;t be any placeholders to replace. Perhaps there are other libraries that allow you to create word documents from scratch but it&#039;s not what LiveDocx is about.</description> <content:encoded><![CDATA[<p>Hi Fatih,</p><p>I don&#8217;t think this is possible. LiveDocx works on the basis of placeholder fields being replaced with content at runtime. Obviously without a template there wouldn&#8217;t be any placeholders to replace. Perhaps there are other libraries that allow you to create word documents from scratch but it&#8217;s not what LiveDocx is about.</p> ]]></content:encoded> </item> <item><title>Comment on Creating Professional Documents the Easy Way by fatih</title><link>http://jeremycook.ca/2010/05/16/creating-professional-documents-the-easy-way/comment-page-1/#comment-353</link> <dc:creator>fatih</dc:creator> <pubDate>Sat, 28 Aug 2010 01:59:08 +0000</pubDate> <guid isPermaLink="false">http://jeremycook.ca/?p=88#comment-353</guid> <description>is it possible to create ms word doc by phpand zend  without template ??</description> <content:encoded><![CDATA[<p>is it possible to create ms word doc by phpand zend  without template ??</p> ]]></content:encoded> </item> <item><title>Comment on Google Custom Search Engine by Jeremy Cook</title><link>http://jeremycook.ca/2010/06/27/google-custom-search-engine/comment-page-1/#comment-351</link> <dc:creator>Jeremy Cook</dc:creator> <pubDate>Sat, 21 Aug 2010 12:40:37 +0000</pubDate> <guid isPermaLink="false">http://jeremycook.ca/?p=124#comment-351</guid> <description>Hi Steve.No, I haven&#039;t done anything with the AJAX API but would be interested in looking into it. Do you know of any resources that illustrate how to use it? Does the AJAX API search the main Google index? One of the advantages of the Custom Search Engine API is that Google builds a customised index of the site. Still, I believe in using the right tools for the job and for another client that may well be the AJAX API.</description> <content:encoded><![CDATA[<p>Hi Steve.</p><p>No, I haven&#8217;t done anything with the AJAX API but would be interested in looking into it. Do you know of any resources that illustrate how to use it? Does the AJAX API search the main Google index? One of the advantages of the Custom Search Engine API is that Google builds a customised index of the site. Still, I believe in using the right tools for the job and for another client that may well be the AJAX API.</p> ]]></content:encoded> </item> <item><title>Comment on Google Custom Search Engine by Steve R</title><link>http://jeremycook.ca/2010/06/27/google-custom-search-engine/comment-page-1/#comment-350</link> <dc:creator>Steve R</dc:creator> <pubDate>Sat, 21 Aug 2010 05:51:44 +0000</pubDate> <guid isPermaLink="false">http://jeremycook.ca/?p=124#comment-350</guid> <description>Hi Jeremy,You mention that the Google API key has a cost. Have you done anything with the Google AJAX Search (which appears to be free)?</description> <content:encoded><![CDATA[<p>Hi Jeremy,</p><p>You mention that the Google API key has a cost. Have you done anything with the Google AJAX Search (which appears to be free)?</p> ]]></content:encoded> </item> <item><title>Comment on Recursive Closures in PHP 5.3 by Jeremy Cook</title><link>http://jeremycook.ca/2010/08/01/recursive-closures-in-php-5-3/comment-page-1/#comment-349</link> <dc:creator>Jeremy Cook</dc:creator> <pubDate>Fri, 20 Aug 2010 14:48:42 +0000</pubDate> <guid isPermaLink="false">http://jeremycook.ca/?p=144#comment-349</guid> <description>Thanks for that Lode, good tip and definitely better than doing this in the code.</description> <content:encoded><![CDATA[<p>Thanks for that Lode, good tip and definitely better than doing this in the code.</p> ]]></content:encoded> </item> <item><title>Comment on Recursive Closures in PHP 5.3 by Lode</title><link>http://jeremycook.ca/2010/08/01/recursive-closures-in-php-5-3/comment-page-1/#comment-348</link> <dc:creator>Lode</dc:creator> <pubDate>Mon, 16 Aug 2010 09:54:45 +0000</pubDate> <guid isPermaLink="false">http://jeremycook.ca/?p=144#comment-348</guid> <description>Even though magic_quotes_* are still enabled on most hosted servers. They are easely disabled in .htaccess 1 simple line: php_value magic_quotes_gpc OffA lot better then filtering them on demand. this will disable them a lot more globally.Anyways a nice example of using a reference closure recursion.</description> <content:encoded><![CDATA[<p>Even though magic_quotes_* are still enabled on most hosted servers.<br /> They are easely disabled in .htaccess 1 simple line:<br /> php_value magic_quotes_gpc Off</p><p>A lot better then filtering them on demand. this will disable them a lot more globally.</p><p>Anyways a nice example of using a reference closure recursion.</p> ]]></content:encoded> </item> <item><title>Comment on Recursive Closures in PHP 5.3 by Heard in the Community (2010.08.15)</title><link>http://jeremycook.ca/2010/08/01/recursive-closures-in-php-5-3/comment-page-1/#comment-347</link> <dc:creator>Heard in the Community (2010.08.15)</dc:creator> <pubDate>Sun, 15 Aug 2010 16:35:32 +0000</pubDate> <guid isPermaLink="false">http://jeremycook.ca/?p=144#comment-347</guid> <description>[...] to move on towards PHP 5.3 and its new, mind-blowing features. Jeremy Cook shows you how to write recursive closures to keep your code clean and simple.phactory - a Database Factory for PHP Unit TestsCreating [...]</description> <content:encoded><![CDATA[<p>[...] to move on towards PHP 5.3 and its new, mind-blowing features. Jeremy Cook shows you how to write recursive closures to keep your code clean and simple.phactory &#8211; a Database Factory for PHP Unit TestsCreating [...]</p> ]]></content:encoded> </item> <item><title>Comment on Recursive Closures in PHP 5.3 by Evert</title><link>http://jeremycook.ca/2010/08/01/recursive-closures-in-php-5-3/comment-page-1/#comment-346</link> <dc:creator>Evert</dc:creator> <pubDate>Sat, 14 Aug 2010 15:56:59 +0000</pubDate> <guid isPermaLink="false">http://jeremycook.ca/?p=144#comment-346</guid> <description>You can also use the y-combinator as a generic pattern for this.</description> <content:encoded><![CDATA[<p>You can also use the y-combinator as a generic pattern for this.</p> ]]></content:encoded> </item> <item><title>Comment on Recursive Closures in PHP 5.3 by Jeremy Cook</title><link>http://jeremycook.ca/2010/08/01/recursive-closures-in-php-5-3/comment-page-1/#comment-345</link> <dc:creator>Jeremy Cook</dc:creator> <pubDate>Sat, 14 Aug 2010 14:24:15 +0000</pubDate> <guid isPermaLink="false">http://jeremycook.ca/?p=144#comment-345</guid> <description>Hi Lode,Thanks for the comment. I should have made it clearer in the post that the code is merely an example for the technique. I used the magic_quotes example because a) it&#039;s the one that came to mind at the time and b) my hosting company has that directive enabled. Unfortunately although magic_quotes are deprecated I can&#039;t see them disappearing any time soon, at least not until every hosting company and server is running PHP 6 (or whatever the next version is going to be called). Personally, I can&#039;t wait for the time when magic_quotes are removed from PHP entirely.Thanks for the info about keys and magic_quotes-I wasn&#039;t aware of that. I&#039;m not sure if I&#039;m too worried about that though. I can&#039;t think of a time when I&#039;ve written a POST, GET or Cookie key that contained characters that would need to be escaped by magic_quotes. One could argue that there&#039;s a potential security vulnerability since there&#039;s nothing to stop an attacker submitting arbitrary key =&gt; value pairs. I would argue though that it&#039;s the job of the developer to only work with parameters that they&#039;re expecting in the request, filtering these in the strongest ways possible. For me the code in the post gives a good start by removing any slashes before any parameters in the request are filtered.</description> <content:encoded><![CDATA[<p>Hi Lode,</p><p>Thanks for the comment. I should have made it clearer in the post that the code is merely an example for the technique. I used the magic_quotes example because a) it&#8217;s the one that came to mind at the time and b) my hosting company has that directive enabled. Unfortunately although magic_quotes are deprecated I can&#8217;t see them disappearing any time soon, at least not until every hosting company and server is running PHP 6 (or whatever the next version is going to be called). Personally, I can&#8217;t wait for the time when magic_quotes are removed from PHP entirely.</p><p>Thanks for the info about keys and magic_quotes-I wasn&#8217;t aware of that. I&#8217;m not sure if I&#8217;m too worried about that though. I can&#8217;t think of a time when I&#8217;ve written a POST, GET or Cookie key that contained characters that would need to be escaped by magic_quotes. One could argue that there&#8217;s a potential security vulnerability since there&#8217;s nothing to stop an attacker submitting arbitrary key => value pairs. I would argue though that it&#8217;s the job of the developer to only work with parameters that they&#8217;re expecting in the request, filtering these in the strongest ways possible. For me the code in the post gives a good start by removing any slashes before any parameters in the request are filtered.</p> ]]></content:encoded> </item> <item><title>Comment on Recursive Closures in PHP 5.3 by Lode</title><link>http://jeremycook.ca/2010/08/01/recursive-closures-in-php-5-3/comment-page-1/#comment-344</link> <dc:creator>Lode</dc:creator> <pubDate>Sat, 14 Aug 2010 13:53:41 +0000</pubDate> <guid isPermaLink="false">http://jeremycook.ca/?p=144#comment-344</guid> <description>The idea is nice, but it&#039;s a pretty poor example because magic_qoutes_gpc are (finally) deprecated in php5.3Please also be adviced that besides the root keys al keys should go through stripslashes as well!See the manual: http://www.php.net/manual/en/security.magicquotes.disabling.php</description> <content:encoded><![CDATA[<p>The idea is nice, but it&#8217;s a pretty poor example because magic_qoutes_gpc are (finally) deprecated in php5.3</p><p>Please also be adviced that besides the root keys al keys should go through stripslashes as well!</p><p>See the manual: <a href="http://www.php.net/manual/en/security.magicquotes.disabling.php" rel="nofollow">http://www.php.net/manual/en/security.magicquotes.disabling.php</a></p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching using disk
Object Caching 473/479 objects using disk

Served from: jeremycook.ca @ 2010-09-08 21:20:31 -->