<?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"
	>

<channel>
	<title>Developer Tutorials' Webmaster Blog &#187; php 6</title>
	<atom:link href="http://www.developertutorials.com/blog/tag/php-6/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.developertutorials.com/blog</link>
	<description>Keeping webmasters up-to-date on technology.</description>
	<pubDate>Thu, 07 Aug 2008 06:42:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>PHP 6 now with .net: Visual Studio integration available already</title>
		<link>http://www.developertutorials.com/blog/php/php-6-now-with-net-visual-studio-integration-available-already-101/</link>
		<comments>http://www.developertutorials.com/blog/php/php-6-now-with-net-visual-studio-integration-available-already-101/#comments</comments>
		<pubDate>Tue, 01 Apr 2008 09:47:02 +0000</pubDate>
		<dc:creator>Akash Mehta</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[.net]]></category>

		<category><![CDATA[php 6]]></category>

		<category><![CDATA[Silverlight]]></category>

		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/php-6-now-with-net-visual-studio-integration-available-already-101/</guid>
		<description><![CDATA[Edit: This was partly an April Fool&#8217;s joke, as many PHP scripters would be incredulous at the mere idea of PHP integration with Microsoft products. However, as you might have noticed, much of this post is very much real - besides the compulsory .net with PHP 6, of course. The Phalanger project has made done [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Edit:</strong> This was partly an April Fool&#8217;s joke, as many PHP scripters would be incredulous at the mere idea of PHP integration with Microsoft products. However, as you might have noticed, much of this post is very much real - besides the compulsory .net with PHP 6, of course. The Phalanger project has made done some fantastic work on compiling PHP with .net/Mono, and is definitely worth a look.</p>
<p>When it comes to the enterprise software development market, Microsoft pretty much has it cornered. After all, who else can boast of a complete software ecosystem, fully supported by the company behind one of the world&#8217;s wealthiest men? From Visual Studio to the various certifications, VB being taught in schools and even the wide penetration of the Visual Studio family of development environments, MS has pretty much got it in one. But it&#8217;s .net that seals the deal: the cross-language runtime environment is perfect.</p>
<p><a href="http://www.php-compiler.net/doku.php?id=core%3aphp-in-vs2008" target="_blank">PHP, .net and Silverlight will be integrated out of the box, along with Visual Studio 2008</a>. The project has long been in the works, but our sources have informed us of an impending announcement that PHP 6 will ship with .net. (Our sources are unreliable, but their information is fascinating! - Ashleigh Brilliant.) Versions 1.0, 2.0 or 3.5 of the .net framework will be a part of the basic requirements of PHP 6 as a result. Here&#8217;s a sample:</p>
<p><a href="http://www.developertutorials.com/blog/php/php-6-now-with-net-visual-studio-integration-available-already-101/php-6-with-net-and-silverlight-in-visual-studio/" rel="attachment wp-att-102" title="PHP 6 with .net and Silverlight in Visual Studio"><img src="http://www.developertutorials.com/blog/wp-content/uploads/2008/04/phpdotnetsilverlight.png" width="450" alt="PHP 6 with .net and Silverlight in Visual Studio" /></a></p>
<p>The .net integration was made possible by <a href="http://www.php-compiler.net/doku.php" target="_blank">the Phalanger project</a>, which has been working hard on this for quite a while - with the help of Redmond, of course.</p>
<p>The Visual Studio IDE typically ships as an IDE with a particular language, merging together when additional languages are added. Microsoft has since released Visual Studio 2008 Shell, an IDE with no particular language environment, in which PHP/Phalanger can be added. Debugging of .net and Silverlight is possible thanks to the integration of Visual Studio. Once installed, a new PHP project will be available from within Visual Studio 2008. <a href="http://winbinder.org/" target="_blank">WinBinder</a> now has competition for Windows RAD PHP development:</p>
<p><a href="http://www.developertutorials.com/blog/php/php-6-now-with-net-visual-studio-integration-available-already-101/visual-rad-development-for-php-net-forms-and-controls-with-winforms/" rel="attachment wp-att-103" title="Visual (RAD) development for PHP - .net forms and controls with WinForms"><img src="http://www.developertutorials.com/blog/wp-content/uploads/2008/04/phpdotnetrad.png" width="450" alt="Visual (RAD) development for PHP - .net forms and controls with WinForms" /></a></p>
<p>Sysadmins with Windows servers running applications that conflict with the .net CLR are advised to upgrade to <a href="http://en.wikipedia.org/wiki/INTERCAL" target="_blank" rel="external nofollow">the Intercal interpreter</a> once PHP 5 support is dropped.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark" style="float:left;">
<div class="d101" style="overflow:hidden">
<div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.developertutorials.com/blog/php/php-6-now-with-net-visual-studio-integration-available-already-101/&amp;title=PHP+6+now+with+.net%3A+Visual+Studio+integration+available+already" title="Add to&nbsp;Del.icio.us">Del.icio.us</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.developertutorials.com/blog/php/php-6-now-with-net-visual-studio-integration-available-already-101/&amp;title=PHP+6+now+with+.net%3A+Visual+Studio+integration+available+already" title="Add to&nbsp;Digg This">Digg This</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.developertutorials.com/blog/php/php-6-now-with-net-visual-studio-integration-available-already-101/&amp;title=PHP+6+now+with+.net%3A+Visual+Studio+integration+available+already" title="Add to&nbsp;Stumble">Stumble</a></div></div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.developertutorials.com/blog/php/php-6-now-with-net-visual-studio-integration-available-already-101/feed/</wfw:commentRss>
		</item>
		<item>
		<title>GOTO is coming to PHP!</title>
		<link>http://www.developertutorials.com/blog/php/goto-is-coming-to-php-14/</link>
		<comments>http://www.developertutorials.com/blog/php/goto-is-coming-to-php-14/#comments</comments>
		<pubDate>Mon, 28 Jan 2008 06:03:37 +0000</pubDate>
		<dc:creator>Akash Mehta</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[php 6]]></category>

		<guid isPermaLink="false">http://www.developertutorials.com/blog/php/goto-is-coming-to-php-14/</guid>
		<description><![CDATA[GOTO, the infamous much-loathed feature of languages in decades gone by, is (sort of) coming to PHP. Read on to see why it&#8217;s actually a good thing.
Luckily, it&#8217;s not that bad. In fact, it&#8217;s quite handy.
Take a look at the following scenario:
while($var)
{
foreach ($var as $val)
{
if ($val) break 2;
}
}

Now, consider all this is inside another while [...]]]></description>
			<content:encoded><![CDATA[<p>GOTO, the infamous much-loathed feature of languages in decades gone by, is (sort of) coming to PHP. Read on to see why it&#8217;s actually a good thing.<br />
Luckily, it&#8217;s not that bad. In fact, it&#8217;s quite handy.<span id="more-14"></span></p>
<p>Take a look at the following scenario:</p>
<p><code>while($var)<br />
{<br />
foreach ($var as $val)<br />
{<br />
if ($val) break 2;<br />
}<br />
}<br />
</code></p>
<p>Now, consider all this is inside another while loop. If someone else comes in and refactors, taking out the foreach loop, your &#8216;break 2;&#8217; suddenly not only breaks out of the while($var) but also the loop outside of it. Big trouble.</p>
<p>Of course, GOTO is associated with Bad Things. A GOTO of sorts is coming to PHP 6, and is actually a good thing. It&#8217;s not so much a GOTO as a named break - it allows you to use your break statements to go to a particular point in code execution, as opposed to all this messy nested looping and loop numbering. Here&#8217;s a sample:</p>
<p><code>for ($i = 0; $i &lt; 9; $i++)<br />
{<br />
if (true) {<br />
break blah;<br />
}<br />
echo "not shown";<br />
blah:<br />
echo "iteration $i\n";<br />
}<br />
?&gt;<br />
</code></p>
<p>I believe it was discussed at a meeting some time back; <a href="http://www.php.net/~derick/meeting-notes.html#adding-goto">see here for the meeting notes</a>. In any case, it&#8217;s a useful addition, provided it isn&#8217;t misused; hopefully we won&#8217;t end up with the spaghetti code messes of years gone by.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark" style="float:left;">
<div class="d14" style="overflow:hidden">
<div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.developertutorials.com/blog/php/goto-is-coming-to-php-14/&amp;title=GOTO+is+coming+to+PHP%21" title="Add to&nbsp;Del.icio.us">Del.icio.us</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.developertutorials.com/blog/php/goto-is-coming-to-php-14/&amp;title=GOTO+is+coming+to+PHP%21" title="Add to&nbsp;Digg This">Digg This</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.developertutorials.com/blog/php/goto-is-coming-to-php-14/&amp;title=GOTO+is+coming+to+PHP%21" title="Add to&nbsp;Stumble">Stumble</a></div></div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.developertutorials.com/blog/php/goto-is-coming-to-php-14/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
