<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Daniel Tome's blog &#187; PHP</title>
	<atom:link href="http://www.danieltome.com/blog/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danieltome.com/blog</link>
	<description>Flash, PHP, Open Source, Actionscript, Australia and Argentina stuff.</description>
	<lastBuildDate>Tue, 18 Nov 2008 00:48:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>FlashDevelop and PHP</title>
		<link>http://www.danieltome.com/blog/2008/04/28/flashdevelop-and-php/</link>
		<comments>http://www.danieltome.com/blog/2008/04/28/flashdevelop-and-php/#comments</comments>
		<pubDate>Sun, 27 Apr 2008 21:34:57 +0000</pubDate>
		<dc:creator>Danno</dc:creator>
				<category><![CDATA[Development Environment]]></category>
		<category><![CDATA[FlashDevelop]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[hAxe]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[ide]]></category>

		<guid isPermaLink="false">http://www.danieltome.com/blog/?p=78</guid>
		<description><![CDATA[The future of coding PHP in FlashDevelop may be quite closer than expected, thanks to user: kuzya (flashdevelop member from russia)
http://www.flashdevelop.org/community/viewtopic.php?p=13082
He modified the HaXeContext plugin and now you can see your php class methods and variables in the outline pane. It was a bit buggy, and then Philippe managed to get to get a basic [...]]]></description>
			<content:encoded><![CDATA[<p>The future of coding PHP in FlashDevelop may be quite closer than expected, thanks to user: kuzya (flashdevelop member from russia)</p>
<p><a title="PHP Methods and variables in FlashDevelop" href="http://www.flashdevelop.org/community/viewtopic.php?p=13082" target="_blank">http://www.flashdevelop.org/community/viewtopic.php?p=13082</a></p>
<p>He modified the <span class="postbody">HaXeContext plugin and now you can see your php class methods and variables in the outline pane. It was a bit buggy, and then Philippe managed to get to get a basic PHP context working overnight!</span></p>
<p><span class="postbody">Philippe&#8217;s version is the Flashdevelop SVN. If you would like to know how to compile the source code and get started with FD development go here: <a title="Compile FlashDevelop source code" href="http://www.flashdevelop.org/community/viewtopic.php?t=8" target="_blank">Participation [Getting started with FD Development]</a><br />
</span></p>
<p><span class="postbody">If you want to try out the initial HAxe Context by kuzya, you can download the plugin: </span><a title="Kuzya initial HTML Context (for PHP)" href="http://spbgu.ru/upload/kuzya/HTMLContext.dll" target="_blank">http://spbgu.ru/upload/kuzya/HTMLContext.dll</a></p>
<p>Copy that dll in your Flashdevelop plugins folder:</p>
<p>Usually: C:\Program Files\FlashDevelop\Plugins<br />
Open a PHP file in FlashDevelop then select Haxe from the Syntax Menu.</p>
<p>Here&#8217;s a screenshot:</p>
<p><a href="http://www.flashdevelop.org/community/viewtopic.php?p=13082"><img class="alignnone size-full wp-image-79" title="FlashDevelop PHP Outline" src="http://www.danieltome.com/blog/wp-content/uploads/2008/04/flashdevelop_php01.gif" alt="" width="434" height="522" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.danieltome.com/blog/2008/04/28/flashdevelop-and-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Getting weird characters with AMFPHP</title>
		<link>http://www.danieltome.com/blog/2008/01/31/getting-weird-characters-with-amfphp/</link>
		<comments>http://www.danieltome.com/blog/2008/01/31/getting-weird-characters-with-amfphp/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 00:01:27 +0000</pubDate>
		<dc:creator>Danno</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[utf8]]></category>
		<category><![CDATA[amfphp]]></category>
		<category><![CDATA[euro symbol]]></category>
		<category><![CDATA[microsoft characters]]></category>
		<category><![CDATA[strange characters]]></category>

		<guid isPermaLink="false">http://www.danieltome.com/blog/2008/01/31/getting-weird-characters-with-amfphp/</guid>
		<description><![CDATA[Just a small reminder that might help anyone getting some weird characters with AMFPHP. It can happen when you copy a full text from Microsoft Word. And the quotes get inserted in your DB.
You might find some funny results like an Euro symbol appearing throughout your text. Uncomment this line in your amfphp gateway:
$gateway-&#62;setCharsetHandler("utf8_decode", "ISO-8859-1", [...]]]></description>
			<content:encoded><![CDATA[<p>Just a small reminder that might help anyone getting some weird characters with AMFPHP. It can happen when you copy a full text from Microsoft Word. And the quotes get inserted in your DB.</p>
<p>You might find some funny results like an Euro symbol appearing throughout your text. Uncomment this line in your amfphp gateway:</p>
<pre>$gateway-&gt;setCharsetHandler("utf8_decode", "ISO-8859-1", "ISO-8859-1");</pre>
<p>Here are some examples of text you might find:<br />
â€˜  = This is the open double quote<br />
â€™  = This is the close double quote</p>
<p>Here is a good resource if you&#8217;re having issues with strange characters and PHP / MySQL: <a href="http://www.byteflex.co.uk/fun_with_utf8_php_and_mysql.html" title="Fun with utf8, php and mysql" target="_blank">ByteFlex &#8211; Fun with utf8, PHP and mysql</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.danieltome.com/blog/2008/01/31/getting-weird-characters-with-amfphp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Free Books for Developers</title>
		<link>http://www.danieltome.com/blog/2007/10/25/free-books-for-developers/</link>
		<comments>http://www.danieltome.com/blog/2007/10/25/free-books-for-developers/#comments</comments>
		<pubDate>Thu, 25 Oct 2007 10:14:32 +0000</pubDate>
		<dc:creator>Danno</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.danieltome.com/blog/2007/10/25/free-books-for-developers/</guid>
		<description><![CDATA[I am currently reading &#8220;CodeIgniter for Rapid PHP Application Development&#8221; from David Upton.
If you have a blog and are willing to write a review of a book you could get a free book. Here are more details on how to get a free book.
I will be writing a review on the book as soon as [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.packtpub.com/codelgniter-php-application-development-mvc/book" title="CodeIgniter for Rapid PHP Application Development" target="_blank"><img src="http://www.danieltome.com/blog/wp-content/uploads/2007/10/packt_codeigniter.png" alt="CodeIgniter for Rapid PHP Application Development" align="left" hspace="5" /></a>I am currently reading &#8220;<a href="http://www.packtpub.com/codelgniter-php-application-development-mvc/book" title="CodeIgniter for Rapid PHP Application Development" target="_blank">CodeIgniter for Rapid PHP Application Development</a>&#8221; from David Upton.</p>
<p>If you have a blog and are willing to write a review of a book you could get a free book. Here are more details on <a href="http://www.packtpub.com/free" title="Packtpub Free" target="_blank">how to get a free book</a>.</p>
<p>I will be writing a review on the book as soon as I finish reading it. I also recommend you <a href="http://www.packtpub.com/" title="Packt Publishing" target="_blank">visit their site</a> and have a look at the <a href="http://www.packtpub.com/books" title="Packtpub Books" target="_blank">collection of books</a>.</p>
<p>After this review I&#8217;ve also got <a href="http://www.packtpub.com/php-web-20-mashups/book" title="Php Web 2.0 mashup projects Book." target="_blank">PHP Web 2.0 Mashup Projects</a>. So I&#8217;ll be reviewing that too in the following weeks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danieltome.com/blog/2007/10/25/free-books-for-developers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What&#8217;s your Flash/PHP Development Environment like?</title>
		<link>http://www.danieltome.com/blog/2007/08/29/whats-your-flashphp-development-environment-like/</link>
		<comments>http://www.danieltome.com/blog/2007/08/29/whats-your-flashphp-development-environment-like/#comments</comments>
		<pubDate>Tue, 28 Aug 2007 21:23:56 +0000</pubDate>
		<dc:creator>Danno</dc:creator>
				<category><![CDATA[Development Environment]]></category>
		<category><![CDATA[FDT]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[FlashDevelop]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.danieltome.com/blog/2007/08/29/whats-your-flashphp-development-environment-like/</guid>
		<description><![CDATA[I started using Flash at version 4, when I was working at W3.com.ar  and I remember also having to fiddle with some Flash 3 banners. When Flash 5 came out and you could do some proper coding, it was all done inside the IDE. Then we discovered the include directive and were using Textpad [...]]]></description>
			<content:encoded><![CDATA[<p>I started using Flash at version 4, when I was working at <a href="http://w3.com.ar/eng_index.html" title="W3 Argentina" target="_blank">W3.com.ar</a>  and I remember also having to fiddle with some Flash 3 banners. When Flash 5 came out and you could do some proper coding, it was all done inside the IDE. Then we discovered the include directive and were using <a href="http://www.textpad.com" title="Textpad. Windows text editor" target="_blank">Textpad</a> with most of our code.</p>
<p>Then came <a href="http://www.sephiroth.it/python/sepy.php" title="Sepy - Actionscript editor" target="_blank">SEPY</a> and I got hooked straight-away. Just last year I transitioned to <a href="http://www.flashdevelop.org" title="Flash Develop." target="_blank">FlashDevelop</a> and have been using that since. I convinced my fellow workmates and now we are all using it.</p>
<p>I knew there were other tools put there, but one that I really wanted to try was <a href="http://fdt.powerflasher.com/flashsite/flash.htm" title="FDT Flash for Eclipse" target="_blank">FDT</a>. Check out there cool site and view the demos they have.<br />
A couple of months back I won a license at <a href="http://flashdev.org.au/" title="Sydney Flash User Group" target="_blank">Sydney&#8217;s Flash User Group</a> (thanks Chris!) and I have started using it for tests. I currently haven&#8217;t fully switched yet, because I find FlashDevelop quite fast and very easy to use compared to FDT. Though FDT has on the fly syntax checking. It means I don&#8217;t have to press F7 each time before compiling.</p>
<p>Then talking about my PHP development environment. It was trusty old Textpad through-out all these years. Adding different syntax libraries, macros and all kind of clip extensions. But it was never an IDE. It was missing syntax checking and the famous &#8220;<a href="http://en.wikipedia.org/wiki/IntelliSense" title="Auto Completion" target="_blank">intellisense</a>&#8221;</p>
<p>Now I have started to move towards Eclipse, and I&#8217;ve tried <a href="http://http://sourceforge.net/projects/phpeclipse" title="PHP Eclipse" target="_blank">PHPEclipse</a> and <a href="http://www.eclipse.org/pdt/" title="Eclipse PHP Development" target="_blank">PDT</a>. I had troubles with PDT but I didn&#8217;t have much time on my hands to see why it wasn&#8217;t working as expected. I will try to consolidate my both main languages (Flash and PHP) under one IDE.</p>
<p>My next step is to use them both on a production project. Then I will be able to assess if it&#8217;s worth switching from FlashDevelop.</p>
<p>It would be great to here what others are using for their own PHP and Flash development.<br />
Please add a comment below.</p>
<p>Some extra resources:<br />
<a href="http://www.blog.lessrain.com/?p=381" title="Flash Eclipse and FDT" target="_blank"> http://www.blog.lessrain.com/?p=381</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.danieltome.com/blog/2007/08/29/whats-your-flashphp-development-environment-like/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Not a Number is a number</title>
		<link>http://www.danieltome.com/blog/2007/02/08/not-a-number-is-a-number/</link>
		<comments>http://www.danieltome.com/blog/2007/02/08/not-a-number-is-a-number/#comments</comments>
		<pubDate>Thu, 08 Feb 2007 05:49:43 +0000</pubDate>
		<dc:creator>Danno</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://danieltome.com/index.php/2007/02/08/not-a-number-is-a-number/</guid>
		<description><![CDATA[I was having some trouble in PHP with a variable getting sent as NaN.
Try this out:



&#60;?


echo &#34; Is NaN a number: &#34; . is_numeric&#40;NAN&#41;;


?&#62;



This is what I was doing in my PHP code:



&#60;?


if &#40;$homePhotoID==&#8221; &#124;&#124; !is_numeric&#40;$homePhotoID&#41; &#41;&#123;


$homePhotoID=&#8216;NULL&#8217;;


&#125;


?&#62;



I was using this variable to insert into a MySQL query. Debugging I figured out it was sending through: [...]]]></description>
			<content:encoded><![CDATA[<p>I was having some trouble in PHP with a variable getting sent as NaN.<br />
Try this out:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">&lt;?</span></div>
</li>
<li class="li1">
<div class="de1"><a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&quot; Is NaN a number: &quot;</span> . <a href="http://www.php.net/is_numeric"><span class="kw3">is_numeric</span></a><span class="br0">&#40;</span>NAN<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">?&gt;</span></div>
</li>
</ol>
</div>
<p>This is what I was doing in my PHP code:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">&lt;?</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">if</span> <span class="br0">&#40;</span><span class="re0">$homePhotoID</span>==<span class="st0">&#8221;</span> || !<a href="http://www.php.net/is_numeric"><span class="kw3">is_numeric</span></a><span class="br0">&#40;</span><span class="re0">$homePhotoID</span><span class="br0">&#41;</span> <span class="br0">&#41;</span><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$homePhotoID</span>=<span class="st0">&#8216;NULL&#8217;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li2">
<div class="de2"><span class="kw2">?&gt;</span></div>
</li>
</ol>
</div>
<p>I was using this variable to insert into a MySQL query. Debugging I figured out it was sending through: NaN<br />
This is how my code ended up:</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">&lt;?</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">if</span> <span class="br0">&#40;</span><span class="re0">$homePhotoID</span>==<span class="st0">&#8221;</span> || !<a href="http://www.php.net/is_numeric"><span class="kw3">is_numeric</span></a><span class="br0">&#40;</span><span class="re0">$homePhotoID</span><span class="br0">&#41;</span> || <a href="http://www.php.net/is_nan"><span class="kw3">is_nan</span></a><span class="br0">&#40;</span><span class="re0">$homePhotoID</span><span class="br0">&#41;</span> <span class="br0">&#41;</span><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1"><span class="re0">$homePhotoID</span>=<span class="st0">&#8216;NULL&#8217;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li2">
<div class="de2"><span class="kw2">?&gt;</span></div>
</li>
</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.danieltome.com/blog/2007/02/08/not-a-number-is-a-number/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
