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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.