Jump to content

[SOLVED] Help a noob - should I learn PHP 6?


canucklehead

Recommended Posts

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!)

Link to comment
https://forums.phpfreaks.com/topic/119032-solved-help-a-noob-should-i-learn-php-6/
Share on other sites

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.