<?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/"
xmlns:series="http://unfoldingneurons.com/"
><channel><title>Larry Ullman &#187; php6</title> <atom:link href="http://www.larryullman.com/tag/php6/feed/" rel="self" type="application/rss+xml" /><link>http://www.larryullman.com</link> <description>Translating Geek Into English</description> <lastBuildDate>Sun, 05 Feb 2012 17:48:42 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>PHP6 to PHP5.4</title><link>http://www.larryullman.com/2012/01/10/php6-to-php5-4/</link> <comments>http://www.larryullman.com/2012/01/10/php6-to-php5-4/#comments</comments> <pubDate>Tue, 10 Jan 2012 22:07:12 +0000</pubDate> <dc:creator>Larry</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[php6]]></category><guid
isPermaLink="false">http://www.larryullman.com/?p=2918</guid> <description><![CDATA[In early 2012, the official release of PHP5.4 is expected (it&#8217;s currently in its fourth release candidate stage). PHP5.4 completes many of the additions that were planned for PHP6 (several others, such as namespaces, were added in PHP5.3). Along with the additions, many of the features that have been deprecated in PHP and were set to [...]]]></description> <content:encoded><![CDATA[<p>In early 2012, the official release of PHP5.4 is expected (it&#8217;s currently in its fourth release candidate stage). PHP5.4 completes many of the additions that were planned for PHP6 (several others, such as namespaces, were added in PHP5.3). Along with the additions, many of the features that have been deprecated in PHP and were set to be removed in version 6.0 are now being removed in 5.4 instead, such as PHP&#8217;s <a
href="http://php.net/manual/en/features.safe-mode.php">Safe Mode</a>.</p><p>The main reason I wanted to use PHP6 when I wrote the third edition of my &#8220;PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide&#8221; book is the intended support for Unicode. I had not seen this before, but I guess the attempted move to Unicode resulted in PHP scripts requiring twice as much memory as before, with a noticeable lag in performance. This is why the developers had to scrap those plans. But PHP 5.4 has &#8220;inline support&#8221; for several new languages, including Japanese and some dialects of Chinese. In other words, PHP5.4 has kind of a Unicode-light support. This Unicode support won&#8217;t be activated unless specified during the installation process.</p><p>I&#8217;m not sure where this leaves actual PHP6, but PHP5 is certainly a most excellent tool in its own right. I did use PHP5.3 in the fourth edition of my &#8220;PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide&#8221; book, and will make use of PHP5.4 in the third edition of my &#8220;PHP 5 Advanced: Visual QuickPro Guide&#8221;, due out later this year.</p><p>&nbsp;</p> ]]></content:encoded> <wfw:commentRss>http://www.larryullman.com/2012/01/10/php6-to-php5-4/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>What is Larry Thinking? #40 =&gt; Doing What I Do, Part 1</title><link>http://www.larryullman.com/2011/05/12/what-is-larry-thinking-40-doing-what-i-do-part-1/</link> <comments>http://www.larryullman.com/2011/05/12/what-is-larry-thinking-40-doing-what-i-do-part-1/#comments</comments> <pubDate>Thu, 12 May 2011 01:37:54 +0000</pubDate> <dc:creator>Larry</dc:creator> <category><![CDATA[JavaScript]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Web Development]]></category> <category><![CDATA[book]]></category> <category><![CDATA[frameworks]]></category> <category><![CDATA[ide]]></category> <category><![CDATA[interview]]></category> <category><![CDATA[newsletter]]></category> <category><![CDATA[pear]]></category> <category><![CDATA[php 6]]></category> <category><![CDATA[php6]]></category> <category><![CDATA[phpstorm]]></category> <category><![CDATA[writing]]></category><guid
isPermaLink="false">http://www.larryullman.com/?p=2564</guid> <description><![CDATA[In this edition… About This Newsletter What Were You Thinking? =&#62; How I Got Here On the Web => Fences for Windows On the Web => PhpStorm IDE On the Blog => Interview Posted Online On the Blog => What Everyone That Writes Should Know About Writing Q&#38;A =&#62; With the availability of so many [...]]]></description> <content:encoded><![CDATA[<p> In this edition…</p><ul><li><a
href="http://www.larryullman.com/2011/05/12/what-is-larry-thinking-40-doing-what-i-do-part-1/#about">About This Newsletter</a></li><li><a
href="http://www.larryullman.com/2011/05/12/what-is-larry-thinking-40-doing-what-i-do-part-1/#you">What Were You Thinking? =&gt; How I Got Here</a></li><li><a
href="http://www.larryullman.com/2011/05/12/what-is-larry-thinking-40-doing-what-i-do-part-1/#web1">On the Web => Fences for Windows</a></li><li><a
href="http://www.larryullman.com/2011/05/12/what-is-larry-thinking-40-doing-what-i-do-part-1/#web2">On the Web => PhpStorm IDE</a></li><li><a
href="http://www.larryullman.com/2011/05/12/what-is-larry-thinking-40-doing-what-i-do-part-1/#blog1">On the Blog => Interview Posted Online</a></li><li><a
href="http://www.larryullman.com/2011/05/12/what-is-larry-thinking-40-doing-what-i-do-part-1/#blog2">On the Blog => What Everyone That Writes Should Know About Writing</a></li><li><a
href="http://www.larryullman.com/2011/05/12/what-is-larry-thinking-40-doing-what-i-do-part-1/#qa1">Q&amp;A =&gt; With the availability of so many PHP frameworks, what is the role of PEAR?</a></li><li><a
href="http://www.larryullman.com/2011/05/12/what-is-larry-thinking-40-doing-what-i-do-part-1/#qa2">Q&amp;A =&gt; What happened to PHP 6?</a></li><li><a
href="http://www.larryullman.com/2011/05/12/what-is-larry-thinking-40-doing-what-i-do-part-1/#thinking">What is Larry Thinking =&gt; Doing What I Do: Writing</a></li><li><a
href="http://www.larryullman.com/2011/05/12/what-is-larry-thinking-40-doing-what-i-do-part-1/#news">Larry Ullman&#8217;s Book News =&gt; &#8220;PHP and MySQL for Dynamic Web Sites&#8221; (4th Edition)</a></li></ul><p> <span
id="more-2564"></span></p><h2 id="about">About This Newsletter</h2><p>Fortunately I&#8217;ve created the habit of working on these newsletters continuously, so that when it becomes time to send another one out, there&#8217;s not quite so much to do. I say &#8220;fortunately&#8221; because I&#8217;m in the throes of completing the fourth edition of my &#8220;PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide&#8221; book and am pressed for time. And even though I had a lot of work done on this in advance, it still took me a week! Anyway, a few random things in this newsletter, along with more on my ongoing series about being employed in the IT industry.</p><p>As always, questions, comments, and all feedback are much appreciated. And thanks for your interest in what I have to say and do!</p><h2 id="you">What Were You Thinking? => How I Got Here</h2><p>I&#8217;m continuing to get feedback on my recent newsletters that discuss various ways of being employed, and how to improve your skills, when pursuing, or having, a career in IT. Yogesh shared this gem:</p><blockquote><p>I have been working at a web startup (In India) for past 8 months. I realized, after a while, that it was not my ability that hindered my learning. It was reluctance to come out of my comfort zone. Earlier I decided to come out of it, easier it got. </p></blockquote><p>That&#8217;s a great perspective. With all jobs, people aspire towards getting comfortable, I believe, but it&#8217;s by being uncomfortable sometimes that we work the hardest and learn the most. Of course, sometimes it&#8217;s nice just being comfortable for a while and not working that hard!</p><p>An Australian associate of mine named Jason, who has provided tons of useful feedback to me over the past couple of years, made the switch from being employed to being self-employed some months ago. He provided me with the following list of lessons he&#8217;s learned in that time (mildly edited):</p><ul><li>Track your time: you need to know how long tasks take to be able to tell if you are making money or losing money.</li><li>Reply to emails within 24 hours; don&#8217;t keep clients waiting.</li><li>You will make mistakes: just make sure you learn from them and take time to reflect.</li><li>Stick to normal business hours.</li><li>Don&#8217;t be afraid to quote too high; always be concerned with quoting too low.</li><li>Find local agencies to partner up with.</li><li>Most importantly, have fun, don&#8217;t stress too much: working for yourself is way better than working in a soulless office!</li></ul><p>Like Yogesh, Jason also specifically mentioned being open to new technologies.</p><p>My thanks to Yogesh and Jason for sharing!</p><h2 id="web1">On the Web => Fences for Windows</h2><p>Some time ago I came across <a
href="http://www.stardock.com/products/fences/">Fences</a>, a desktop organization tool for Windows (virtual desktop, that is). I don&#8217;t personally use Windows regularly, so I haven&#8217;t tried this, but it looks like the kind of thing I would like if I did use Windows, so I thought I&#8217;d pass it along. It&#8217;s available in both free and commercial versions.</p><h2 id="web2">On the Web => PhpStorm IDE</h2><p>A few weeks ago I had posted on my blog a mention of the <a
href="http://www.jetbrains.com/phpstorm/">PhpStorm IDE</a>. I haven&#8217;t personally used it, but it has all the features you&#8217;d want in a PHP IDE, such as code completion, unit testing, version control, FTP, debugging, etc., plus bonuses such as support for editing HTML, CSS, and JavaScript. There&#8217;s a 30-day free trial available and a personal license costs $99 (US). PhpStorm runs on Windows, Mac OS X, and Linux. JetBrains is the creator of the powerful IntelliJ IDEA Java IDE, so their experience in creating good IDEs is well established.</p><p>I received a handful of comments from current users of PhpStorm, and the response has been strongly positive. If you&#8217;re looking for a new PHP IDE, check this one out!</p><h2 id="blog1">On the Blog => Interview Posted Online</h2><p>Sayyid Alireza Hoseini of <a
href="http://www.bugx.ir/">bugX.ir</a> recently conducted an email interview with me, that has <a
href="http://www.bugx.ir/webdesign/content/interview/7">now been posted on bugX.ir</a>. In case you don&#8217;t read Persian, I&#8217;ve posted the English version of the interview <a
href="http://www.larryullman.com/2011/04/04/interview-posted-online/">on my blog</a>.</p><h2 id="blog2">On the Blog => What Everyone That Writes Should Know About Writing</h2><p>A few weeks ago, I posted <a
href="http://www.larryullman.com/2011/04/10/what-everyone-that-writes-should-know-about-writing/">What Everyone That Writes Should Know About Writing</a>. If you already do any writing, or are hoping to, I believe I present some great advice in this post: the most important thing I&#8217;ve learned from writing 21 books, dozens of articles, and hundreds of blog postings. I won&#8217;t give away the secret here, but head to the blog if you&#8217;re curious.</p><h2 id="qa1">Q&amp;A => With the availability of so many PHP frameworks, what is the role of PEAR?</h2><p>Some time back, way back, Daniel asked my this question and I&#8217;m finally getting around to answering it now. In part I&#8217;m thinking about this question because I write about <a
href="http://pear.php.net">PEAR</a> in my &#8220;PHP 5 Advanced: Visual QuickPro Book&#8221;, which I&#8217;ll be updating in early 2012, so I&#8217;m starting to re-evaluate what I discuss in that book. Secondarily, I&#8217;ve been assisting some readers in the <a
href="http://www.larryullman.com/forums/">support forums</a> with their questions on PEAR recently. So with the availability of so many PHP frameworks, what is the role of PEAR and is it still useful?</p><p>PEAR is a library of classes of code designed to solve specific problems, such as creating and validating forms, sending HTML email, and so forth. Although the PEAR site describes it as a framework, I don&#8217;t think of it as a true framework, or as an alternative to a framework. You can&#8217;t, or wouldn&#8217;t, build an entire site in PEAR, and you can actually use PEAR libraries piecemeal in a framework-based site. A few years ago, I rather liked what could be found in PEAR, or I liked the <em>promise</em> of PEAR. But the PEAR classes are created and maintained by individuals, meaning that the longevity, development, and viability of any PEAR library depends upon the individual(s) continuing to work on the project. As with any project that doesn&#8217;t pay, it&#8217;s easy for developers to spend less and less time on their PEAR libraries. Regrettably, many useful PEAR projects have not been maintained (in fact, even the most recent bit of news on the PEAR home page is over a year old). I&#8217;m not sure what I&#8217;ll do in the next edition of the book, but I probably wouldn&#8217;t advise that anyone spend too much time learning or using PEAR, considering the frequency with which PEAR classes become abandoned or deprecated. Secondarily, PEAR can be challenging to install.</p><p>Ironically, the <a
href="http://framework.zend.com">Zend Framework</a> has become a good alternative to PEAR. Yes, yes: I said that PEAR is not an alternative to frameworks, which is true, but Zend is a somewhat unique framework, making it an alternative to PEAR in some ways. I don&#8217;t personally care for using the Zend Framework as the basis of a site, but the Zend Framework&#8217;s greatest feature, in my opinion, is that you can use pieces of it in your own projects easily. On a couple of recent projects, when I&#8217;ve had to send HTML email or generate PDFs, using the corresponding part of the Zend Framework was an easy solution. And since the Zend Framework is maintained by the most important PHP-related company, its future is stable and bright.</p><p>As a last note I&#8217;ll point out that, despite all this, PEAR is still very useful, but not directly to the average person. Many of the best additions to the PHP core over the past few years were originally PEAR projects. The <a
href="http://www.php.net/filter">Filter extension</a> is the best example. Thus, PEAR is an excellent incubator for functionality to be added to PHP itself in time.</p><h2 id="qa2">Q&amp;A => What happened to PHP 6?</h2><p>I forget who specifically asked me this question—What happened to PHP 6?, probably because it&#8217;s been asked many times over (in the forums, in emails, on the blog, in Amazon.com reviews, etc.). Before the answer, some context as to how this relates to me (because, apparently, it&#8217;s all about me!)…</p><p>When I went to write the third edition of my &#8220;PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide&#8221;, I had to decide what version of PHP to support. As a writer of technical books, you don&#8217;t want the work to be outdated shortly after publication. When I was making this decision, PHP 5 had been out for some time, and work on PHP 6 was about 50% complete. The big new feature in PHP 6, as far as I was concerned, was support for <a
href="http://www.unicode.org">Unicode</a>. In theory, PHP 6 was going to be support any language natively, meaning you could sort lists by your native tongue, write function and variable names in your own characters, and so forth. I thought this was a significant enough addition to go ahead and include it in the third edition of the book. I was wrong. Or at least premature.</p><p>In the past couple of years, PHP 6 went from being stagnant, to unavailable, to dead in the water. The problem stemmed from how Unicode works; more specifically, I believe there was a switch from 32-bit to 64-bit (but I could be wrong about that particular detail). Realizing that the progress on PHP 6 to date would have to be scrapped, the PHP developers pulled the plug on the Unicode aspect of the planned PHP 6. Most of the other features intended for PHP 6, such as support for <a
href="http://php.net/manual/en/language.namespaces.php">namespaces</a>, were rolled into PHP 5.3. In fact, some of what I demonstrated in the third edition of the book, became possible in PHP 5.3 through additions to the <a
href="http://php.net/manual/en/book.spl.php">Standard PHP Library</a>.</p><p>I have not heard recently what the plan is for PHP 6. It&#8217;s possible they make skip PHP 6 and go straight to PHP 7. Being an open source product, there&#8217;s no marketing incentive to put out new versions of the language, so it&#8217;s only natural that the development path would slow as the language matures. And the adoption of PHP 5 was already rather slow, at least among Web hosting companies. My expectation is that PHP will be continuing along with incremental releases, in the 5.x family, for the next couple of years or so.</p><h2 id="thinking">What is Larry Thinking? => Doing What I Do: Writing</h2><p>In this newsletter I&#8217;m also continuing what became a series on IT careers. I first wrote about becoming a better programmer, in two parts (<a
href="http://www.larryullman.com/2011/02/01/what-is-larry-thinking-36-becoming-a-better-programmer-and-more/#thinking">1</a> and <a
href="http://www.larryullman.com/2011/02/25/what-is-larry-thinking-37-becoming-a-better-programmer-part-2/#thinking">2</a>). Then I wrote about <a
href="http://www.larryullman.com/2011/03/22/what-is-larry-thinking-38-building-a-career/#thinking">building a career</a> and <a
href="http://www.larryullman.com/2011/04/16/what-is-larry-thinking-39-how-i-got-here-and-the-future/#thinking">how I got here</a>. In this newsletter, I&#8217;m going to write about some of the specifics of what I do, with the goal of helping you do those things, too (should you want to, that is). I&#8217;ll also provide some details as to what you could expect to earn doing these things, because that&#8217;s such a mitigating factor. All of the dollar amounts will be in US dollars, and do keep in mind that you need to pay your own taxes on the income: earning $100 does not mean you have $100 to buy stuff with.</p><p>If you are hoping to work for yourself, there are many things to think about, but the most important is how you go about making money. I&#8217;ll speak to that specifically here. For some context, I&#8217;d say I earn about 60-70% of my income from writing, with the other 30-40% coming from some combination of programming and training. Before looking at these particulars, though, I want to make clear one of the great benefits of working for yourself: You can make money however you want (or can)!</p><p>First, one option is to come up with and implement &#8220;The Next Big Thing.&#8221; Your abilities and imagination are the limitations here. Worst-case scenario, you&#8217;re out some money and a lot of time; best-case scenario, you&#8217;re a billionaire. It really is amazing that you can come up with an Angry Birds or a YouTube or whatever and make it happen without spending much money at all. This is somewhat unique to the IT industry: architects need clients that will pay for the building to be made; doctors need patients; but IT entrepreneurs can fully realize their own vision. And you can make a fortune this way. Statistically, though, most endeavors will make little to nothing. I&#8217;ve never personally pursued this route, although I once worked with someone doing just that, but it&#8217;s worth considering. Just be certain to balance the goals and dreams against your abilities, time, and money. In other words, in pursuing &#8220;The Next Big Thing&#8221;, don&#8217;t risk more than you can afford to lose.</p><p>Now, as for what I do have extensive experience with, it&#8217;s much easier to be published than you might think (although, in truth, I may have a totally warped sense of perspective on that by now). You can begin by writing your own content, for free, on a blog. This will help you become a better writer and may be useful when you start submitting article ideas for other Web sites or print materials. Like any skill, practicing writing makes you a better writer. Find topics and write about them. You&#8217;ll learn a lot about the time that&#8217;s required, how to present ideas, how to overcome obstacles, and so forth. If you get some feedback from readers, either people you know or strangers, you&#8217;ll learn even more. You could perhaps even volunteer to write for someone else&#8217;s blog. By doing so you can tap into their success and audience, thereby getting a foot in the door.</p><p>When it comes time to getting paid for publishing, there are two avenues: books and articles. I don&#8217;t think self-publishing is a viable option unless you&#8217;ve already made a name for yourself (I say that because I have made a name for myself, in all modesty, and I still am unsure as to how viable self-publishing will be for me). I think you&#8217;d have the best luck in publishing articles if you went with an agency, such as <a
href="http://www.StudioB.com/">Studio B</a>. Studio B handles both articles, where Studio B is really representing the client (i.e., the Web sites where the articles would be published), and books, with a typical agency model. You still need to prove yourself to Studio B to get involved with them, but I can&#8217;t imagine their criteria is too stringent. Once established with Studio B, you&#8217;ll receive monthly newsletters with what they&#8217;re specifically looking for. All you&#8217;ll need to do is find an appropriate topic, come up with a proposal, and you&#8217;re on your way. In case you&#8217;re curious, you can expect to make anywhere from about $150 to $500 or so per article: not a lot of money, but decent for the amount of work required. Secondarily, publishing articles gets your name out there, which can help both a book career and a Web development, trainer, or consultant career.</p><p>For publishing books, it&#8217;s simple. In theory. Yes, it helps to have published some books already and it does help to know someone, but at the end of the day, it&#8217;s just a matter of getting the right idea to the right publisher. The biggest mistake most people make is not understanding the publisher&#8217;s needs: For Dummies isn&#8217;t going to do a book on, say, the Eclipse IDE, and Peachpit Press isn&#8217;t going to accept your proposal for an intro to PHP book (because they already have one!). Just get a good book idea to an appropriate publisher. Pretty much every publisher has submission guidelines on their Web sites, which you should follow exactly (because if you can&#8217;t do that, you probably can&#8217;t write a good book).</p><p>As for making money through books, it&#8217;s not as great as you might think. There are two issues: advance and royalties. An advance is given for writing a book and is money that&#8217;s yours to keep. The royalty rate is what you make per book, and all royalties first go towards paying the advance back to the publisher. Some publishers give larger advances (maybe around $10,000); other publishers give smaller or no advances, but higher royalty rates. I make, for example, maybe an average of $1.50-$2.00 per book, meaning that I need to sell at least 5,000-6,500 books before I earn money beyond the advance. Roughly speaking, I believe total sales north of 10,000 copies is considered to be good. If you think you want to make money writing books, assume that for an individual book you may get an advance of $8,000. If it sells well, maybe you sell 8,000 copies, which brings in approximately $12,000-$16,000. But that extra $4,000-$8,000 (above the advance) would be paid over some years. And that&#8217;s for about four months of hard work: the time often allotted to complete a book. If your book sells very well, you can make much more, but statistically, that&#8217;s not common. However, an ancillary benefit of getting published is that you&#8217;ll have some new work come to you (because your name is on a book) and you can charge more to do that work (because your name is on a book).</p><p>I had intended to write about everything I do in this newsletter, which includes Web development, programming, and training, but as this newsletter is getting long, and I have a book to finish, I&#8217;ll complete this line of thinking in the next newsletter.</p><h2 id="news">Larry Ullman&#8217;s Book News => &#8220;PHP and MySQL for Dynamic Web Sites&#8221; (4th Edition)</h2><p>As already mentioned, I&#8217;m still toiling away on the fourth edition of my &#8220;PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide&#8221; book. I&#8217;ve finished the first draft through Chapter 14 and I&#8217;ve done the rewrites through Chapter 5. In Chapter 11, &#8220;Web Application Development,&#8221; I changed the structure a bit, and elongated the section on PHP and JavaScript (it was an area of common confusion in previous editions). In Chapter 13, &#8220;Security Approaches,&#8221; I added two new sections, one on using the <a
href="http://www.php.net/filter">Filter</a> extension for data validation and sanitization, and the other on using the <a
href="http://www.php.net/fileinfo">Fileinfo</a> extension to help verify the authenticity of an uploaded file&#8217;s type. I&#8217;m currently working on Chapter 16, &#8220;An OOP Primer,&#8221; which is an entirely new chapter. Then I&#8217;ll write the other new chapter: Chapter 15, &#8220;Introducing jQuery.&#8221; It looks like I should have the book done by the end of the month or so, making it available late summer.</p><p>The JavaScript book will get all of my attention after I complete the PHP and MySQL book, and I have no other deadlines for the rest of the year, so I&#8217;m optimistic about its future!</p> ]]></content:encoded> <wfw:commentRss>http://www.larryullman.com/2011/05/12/what-is-larry-thinking-40-doing-what-i-do-part-1/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>The Death of PHP 6/The Future of PHP 6</title><link>http://www.larryullman.com/2010/05/25/the-death-of-php-6the-future-of-php-6/</link> <comments>http://www.larryullman.com/2010/05/25/the-death-of-php-6the-future-of-php-6/#comments</comments> <pubDate>Tue, 25 May 2010 21:35:34 +0000</pubDate> <dc:creator>Larry</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[php6]]></category><guid
isPermaLink="false">http://www.larryullman.com/?p=1067</guid> <description><![CDATA[About two months ago, Johannes Schlüter posted about the Future of PHP 6. Schlüter works for MySQL (and therefore Oracle-Sun) and is an active and involved member of the PHP team. In his post, Schlüter discusses the difficult choices facing PHP with respect to the intended version 6 and its support for Unicode. In turns [...]]]></description> <content:encoded><![CDATA[<p>About two months ago,  Johannes Schlüter posted about the <a
href="http://schlueters.de/blog/archives/128-Future-of-PHP-6.html">Future of PHP 6</a>. Schlüter works for MySQL (and therefore Oracle-Sun) and is an active and involved member of the <a
href="http://www.php.net">PHP</a> team. In his post, Schlüter discusses the difficult choices facing PHP with respect to the intended version 6 and its support for Unicode. In turns out that changing all of PHP to support Unicode isn&#8217;t as easy as one would have thought. And, of course, it was originally considered to be, well, hard. Apparently, this struggle is the reason PHP 6 is still nowhere to be found (in fact, the source code has slowly been disappearing from PHP&#8217;s snaps site). So now, the PHP team is regrouping in order to go forward and we&#8217;re not exactly sure when or how Unicode support will be integrated into PHP, or how this change affects the next few versions of PHP, both minor (i.e., 5.3) and major (6 and 7).</p><p>As a person that <a
href="http://www.amazon.com/PHP-MySQL-Dynamic-Web-Sites/dp/032152599X/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1274841177&amp;sr=8-1">wrote a book on PHP 6 </a>quite some time ago, and has looked more and more silly over time, I&#8217;m happy to hear this news, even if we don&#8217;t yet know what the end result will be. Granted, most of that book uses PHP 5 and PHP 6 (the version that was available when I wrote it) is only required by like 5-10% of the material, but still&#8230;lesson learned on my part: especially when it comes to open source software, there&#8217;s just no predicting what&#8217;s going to happen next. So, for the time being, let&#8217;s be happy with the PHP we have and keep an eye on where the development team goes with this. I know I sure will!</p> ]]></content:encoded> <wfw:commentRss>http://www.larryullman.com/2010/05/25/the-death-of-php-6the-future-of-php-6/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Installing PHP 6 on Windows</title><link>http://www.larryullman.com/2010/03/17/installing-php-6-on-windows/</link> <comments>http://www.larryullman.com/2010/03/17/installing-php-6-on-windows/#comments</comments> <pubDate>Wed, 17 Mar 2010 12:09:32 +0000</pubDate> <dc:creator>Larry</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[php6]]></category><guid
isPermaLink="false">http://www.larryullman.com/?p=977</guid> <description><![CDATA[The makers of EasyPHP, an all-in-one Apache, PHP, and MySQL installer for Windows, also provides a PHP 6 version if you&#8217;re interested in experimenting with the next major version of the language (as I demonstrate in my PHP 6 and MySQL 5 for Dynamic Web Sites book). I haven&#8217;t personally used EasyPHP (I try to [...]]]></description> <content:encoded><![CDATA[<p>The makers of <a
href="http://www.easyphp.org/">EasyPHP</a>, an all-in-one Apache, PHP, and MySQL installer for Windows, also provides a PHP 6 version if you&#8217;re interested in experimenting with the next major version of the language (as I demonstrate in my <a
href="http://www.amazon.com/PHP-MySQL-Dynamic-Web-Sites/dp/032152599X/ref=dp_cp_ob_b_image_1">PHP 6 and MySQL 5 for Dynamic Web Sites</a> book). I haven&#8217;t personally used EasyPHP (I try to avoid using Windows, if at all possible), but from what I can tell it seems to be a quality, well-supported product. EasyPHP is available for free although donations are encouraged.</p> ]]></content:encoded> <wfw:commentRss>http://www.larryullman.com/2010/03/17/installing-php-6-on-windows/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>PHP 6 Hosting</title><link>http://www.larryullman.com/2010/03/06/php-6-hosting/</link> <comments>http://www.larryullman.com/2010/03/06/php-6-hosting/#comments</comments> <pubDate>Sat, 06 Mar 2010 01:37:13 +0000</pubDate> <dc:creator>Larry</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[php 6]]></category> <category><![CDATA[php6]]></category><guid
isPermaLink="false">http://www.larryullman.com/?p=954</guid> <description><![CDATA[A reader posted a question in the forum the other day and indicated they were using PHP 6 on a shared hosting account. It&#8217;s absolutely fantastic when people include their PHP (or whatever) version when they ask questions, but, more to the point, I was surprised to see PHP 6 being offered, since it hasn&#8217;t [...]]]></description> <content:encoded><![CDATA[<p>A reader posted a question in the <a
href="http://www.larryullman.com/phorum/">forum</a> the other day and indicated they were using PHP 6 on a shared hosting account. It&#8217;s absolutely fantastic when people include their PHP (or whatever) version when they ask questions, but, more to the point, I was surprised to see PHP 6 being offered, since it hasn&#8217;t been officially released yet. But, yes, <a
href="http://www.siteground.com">SiteGround</a> offers hosting accounts with <a
href="http://www.siteground.com/php-hosting.htm">several different versions of PHP</a>. I know nothing of the company or the quality of their hosting, but if you want to try PHP 6, without installing it on your own computer, this is a cheap option.</p> ]]></content:encoded> <wfw:commentRss>http://www.larryullman.com/2010/03/06/php-6-hosting/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Installing PHP6 on Windows</title><link>http://www.larryullman.com/2009/02/17/installing-php6-on-windows/</link> <comments>http://www.larryullman.com/2009/02/17/installing-php6-on-windows/#comments</comments> <pubDate>Tue, 17 Feb 2009 14:39:41 +0000</pubDate> <dc:creator>Larry</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[Web Development]]></category> <category><![CDATA[abyss]]></category> <category><![CDATA[install]]></category> <category><![CDATA[php6]]></category> <category><![CDATA[windows]]></category><guid
isPermaLink="false">http://www.larryullman.com/?p=273</guid> <description><![CDATA[When I went to write the third edition of my PHP 6 and MySQL 5 for Dynamic Web Sites: Visual QuickPro Guide book, I had to decide what version of PHP to support. PHP5 had been out some time and PHP6 was more than 50% ready to go. The primary alteration in PHP6 is support [...]]]></description> <content:encoded><![CDATA[<p>When I went to write the third edition of my <a
href="http://click.linksynergy.com/fs-bin/click?id=*Bm0DIfkEko&amp;offerid=145244.10000039&amp;type=3&amp;subid=0">PHP 6 and MySQL 5 for Dynamic Web Sites: Visual QuickPro Guide</a><img
src="http://ad.linksynergy.com/fs-bin/show?id=*Bm0DIfkEko&amp;bids=145244.10000039&amp;type=3&amp;subid=0" border="0" alt="" width="1" height="1" /> book, I had to decide what version of <a
href="http://www.php.net">PHP</a> to support. PHP5 had been out some time and PHP6 was more than 50% ready to go. The primary alteration in PHP6 is support for Unicode, a change that Ruby is also making in version 1.9. This is a big deal, so I thought I&#8217;d include support for PHP6 in the book. Now, just over a year later, there&#8217;s no news on PHP6 and, from what I gathered, there&#8217;s not a pressing drive to get it out anytime soon, either. Such are the potential problems when it comes to writing about open source software: you really never know what you&#8217;re going to get or when. Obviously the situation isn&#8217;t ideal but only two chapters in the book require PHP6, and some features originally intended for PHP6 have been added to PHP5. Still, some users reading the book (rightfully) want to test or play with the forthcoming, primarily Unicode-related, features I discuss in those two chapters. In order to do so, you&#8217;ll need to do what I did in order to write the book: install a beta version of PHP6 on your computer. In this post, I&#8217;ll walk you through that process for Windows users (I&#8217;ll address non-Windows users separately).<span
id="more-273"></span>No matter what version of PHP you&#8217;re using, you need to run it through a Web server (unless you&#8217;re using it for command-line purposes only). Normally I would run PHP through <a
href="http://httpd.apache.org">Apache</a>, even on Windows. Generally I advise beginning Windows users to install something like <a
href="http://www.apachefriends.org/en/xampp-windows.html">XAMPP</a>, which is an easy, no-nonsense all-in-one packager for PHP, Apache, <a
href="http://www.mysql.com">MySQL</a> and more. So as not to have the PHP6 installation conflict or harm any existing PHP setups, I would recommend using another Web server for PHP6. In this example, I&#8217;ll use <a
href="http://www.aprelium.com/abyssws/">Abyss</a>, from <a
href="http://www.aprelium.com/">Aprelium</a>, a nice, simple to use, lightweight alternative to Apache. You can also use <a
href="http://www.iis.net">Internet Information Services (IIS)</a>, the Microsoft Web server, but I&#8217;m much less familiar with it.</p><p>To start, download a snapshot of PHP6. A <em>snapshot</em>, in case you&#8217;re not familiar with it, is just a reflection of the software at a moment in time. For example, a snapshot may be what PHP6 looks like at February 17, 2009 at midnight. Note that snapshots are not intended for production use. Most PHP snapshots are at http://snaps.php.net. For Windows, you need to head to <a
href="http://windows.php.net/snapshots/">http://windows.php.net/snapshots/</a>. As I write this, that page has snapshots available for three versions of PHP: 5.2, 5.3, and 6.0. For Windows running Apache or Abyss, you want to download the file named <strong>PHP 6.0 &#8211; Windows x86 VC6 (thread safe)</strong>. The downloaded file is a ZIP that needs to be extracted. I extracted all of my files into a newly created <strong>C:\php6</strong> directory.</p><p>Next you need to <a
href="http://www.aprelium.com/abyssws/download.php">download</a> and install Abyss. For this article, I used version X1, which is free. The Abyss installation process is really simple and needs no further explanation from me (check the official documentation if you have questions). After you&#8217;ve installed Abyss, start it up and you can configure it for PHP. Much of this information comes from <a
href="http://www.aprelium.com/abyssws/php.html">Abyss&#8217; own documentation for installing PHP</a>, but with my own images (click the appropriate links to see them). After you register and login, you&#8217;ll be brought to the <a
href="http://cloudfront.larryullman.com/wp-content/uploads/2009/02/abyss1.png" target="_blank">Abyss Web Server Console</a>. Click &#8220;Configure&#8221; for the default host (note that your default host may run on a port other than 80 if you have another Web server installed). <a
href="http://cloudfront.larryullman.com/wp-content/uploads/2009/02/abyss2.png" target="_blank">On the resulting page</a>, click on &#8220;Scripting Parameters&#8221;.</p><p>On the <a
href="http://cloudfront.larryullman.com/wp-content/uploads/2009/02/abyss5.png" target="_blank">Scripting Parameters page</a>, make sure that &#8220;Enable Scripts Execution&#8221; is checked. Then click &#8220;Add&#8221; in the &#8220;Interpreters&#8221; table. This will take you to a new page. <a
href="http://cloudfront.larryullman.com/wp-content/uploads/2009/02/abyss3.png" target="_blank">On that page</a>, set the &#8220;Interface&#8221; to &#8220;FastCGI (Local &#8211; Pipes)&#8221;. Then click Browse next to the &#8220;Interpreter&#8221; and select the <strong>php-cgi.exe</strong> file in the extracted PHP6 snapshot folder. Don&#8217;t select the <strong>php.exe</strong> or <strong>php-win.exe</strong> file, use <strong>php-cgi.exe</strong>, which is explicitly for FastCGI usage. Change the &#8220;Type&#8221; to &#8220;PHP Style&#8221; and make sure the &#8220;Use the associated extensions to automatically update the Script Paths&#8221; box is checked. Click &#8220;Add&#8221; in the &#8220;Associated Extensions&#8221; table. In the popup window, enter <em>php</em> and click OK. This last step associates files with a <strong>.php</strong> extension wtih the PHP6 executable. (As an aside, if you wanted to use Abyss for multiple versions of PHP, you could associate <strong>.php</strong> with a PHP5 executable but <strong>.php6</strong> for PHP6.) Then click OK to leave the Interpreters page. This will return you to the &#8220;Scripting Parameters&#8221; page.</p><p>Back on the &#8220;Scripting Parameters&#8221; page, click &#8220;Add&#8221; in the &#8220;Custom Environment Variables&#8221; table. In the <a
href="http://cloudfront.larryullman.com/wp-content/uploads/2009/02/abyss4.png" target="_blank">resulting window</a>, type <em>REDIRECT_STATUS</em> as the &#8220;Name&#8221; and <em>200</em> as the &#8220;Value&#8221;, then click OK. You&#8217;ll need to click &#8220;OK&#8221; on the &#8220;Script Parameters&#8221; page, which will take you back to the Abyss Web Server Console page. There, if you want, use the &#8220;Index Files&#8221; page to add <strong>index.php</strong> as an acceptable index file. Then, restart Abyss.</p><p>After you do all this, you can use a <a
href="http://cloudfront.larryullman.com/wp-content/uploads/2009/02/abyss6.png" target="_blank">phpinfo() script to confirm the version of PHP that you now have running</a>. And that&#8217;s it! Enjoy playing with PHP6 and let me know if you have any questions or problems (issues related to installation can be made as comments here; other questions should go in the book forums).</p> ]]></content:encoded> <wfw:commentRss>http://www.larryullman.com/2009/02/17/installing-php6-on-windows/feed/</wfw:commentRss> <slash:comments>13</slash:comments> </item> </channel> </rss>
<!-- Served from: www.larryullman.com @ 2012-02-05 15:37:24 by W3 Total Cache -->
