canucklehead Posted August 10, 2008 Share Posted August 10, 2008 I'm a beginning web "developer" (I can code valid xhtml strict and css) and I want to expand into php. There's a book on Amazon called "PHP 6 and MySQL 5" which is rated very highly, and I'm considering purchasing it. However, since no hosts support PHP 6, I'm wondering if it's even worth it to jump right in to 6 or if I should stick to learning 5. I guess what I'm wondering is if I can code in PHP 6 but call it PHP 5 in order for it to work with my host. Insight please! (and thanks in advance!) Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted August 10, 2008 Share Posted August 10, 2008 PHP 6 is still in development, in order to get PHP6 you need compile it and install it locally. I say for now stick with PHP5. PHP5 will be compatible with PHP6. Quote Link to comment Share on other sites More sharing options...
DarkWater Posted August 10, 2008 Share Posted August 10, 2008 That is quite honestly an AMAZING book. I'd get it if I were you (it's the 3rd edition of (in my opinion) the best PHP book I've read). Get it. It gives you hints on where certain PHP6 things only apply (such as unicode typecasting and stuff). =P Quote Link to comment Share on other sites More sharing options...
canucklehead Posted August 10, 2008 Author Share Posted August 10, 2008 So, if I learn from that book, would I still be able to code in PHP 5 until PHP 6 becomes official? Quote Link to comment Share on other sites More sharing options...
DarkWater Posted August 10, 2008 Share Posted August 10, 2008 So, if I learn from that book, would I still be able to code in PHP 5 until PHP 6 becomes official? Indeed you would. Quote Link to comment Share on other sites More sharing options...
canucklehead Posted August 10, 2008 Author Share Posted August 10, 2008 Thanks very much; I appreciate it! Quote Link to comment Share on other sites More sharing options...
tibberous Posted August 10, 2008 Share Posted August 10, 2008 I *just* started using PHP5. If PHP6 ever gets adopted, it's years off - getting rid of magic quotes and register globals and safe mode is going to make it very unattractive to shared hosting providers, who are going to have to deal with people wanting to run scripts written for PHP4 and 5. Honestly, the only way I know what version of PHP I'm on is if file_put_contents doesn't work - and if it doesn't I open up my big file of PHP5 functions and paste it in one of the headers. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.