Reply
Old 01-17-2009, 04:33 PM Learning PHP6
jason_bristol's Avatar
Ultra Talker

Posts: 301
Name: Jason Eyermann
Location: england bristol
Trades: 0
I want to learn a new book on PHP to catch up on some of the changes.

I saw a book on Amazon called - PHP 6 and MySQL 5 for Dynamic Web Sites.
My server uses php5 and i'm guessing they're going to be using php5 for some time yet.

Would I be able to use the code learnt from such a book on my server?
jason_bristol is offline
Reply With Quote
View Public Profile Visit jason_bristol's homepage!
 
 
When You Register, These Ads Go Away!
Old 01-17-2009, 04:38 PM Re: Learning PHP6
wayfarer07's Avatar
NYE-KEE

Posts: 3,155
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
PHP 6 has never been released, so I don't know what that book is trying to teach.
__________________
Wayfarer | jQuery Tooltip Plugin | Mapbox: the jQuery Map
Freelance Jobs Available
If Google is the Coca-Cola of Web search, Bing is RC Cola
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 01-17-2009, 05:05 PM Re: Learning PHP6
rogem002's Avatar
Super Spam Talker

Latest Blog Post:
Making Zebra Stripes with CSS3
Posts: 835
Name: Mike
Location: United Kingdom
Trades: 0
Quote:
Originally Posted by wayfarer07 View Post
PHP 6 has never been released, so I don't know what that book is trying to teach.
Actually PHP6 is currently in development and most of the changes have already been documented.

PHP 6 and MySQL 5 for Dynamic Web Sites - Good book, I learnt from PHP 4 and MySQL 4 for Dynamic Web Sites. It's a cook book and it's the best one out there.

Most web hosts will not upgrade to PHP6 until about 3 months after it's out (to iron out all the bugs). I suggest you wait for it to become more main stream...or just google "changes to php6"
__________________
PHP Code:
Add_Talkupation('rogem002'); // Because sharing is awesome! 
Fix 90% of your problems | Full On Design
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Old 01-17-2009, 05:24 PM Re: Learning PHP6
wayfarer07's Avatar
NYE-KEE

Posts: 3,155
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
I know its under development, and it has been since about 2005, but the speculation I've read says that it will take hosts a LOT longer than 3 months to upgrade.
__________________
Wayfarer | jQuery Tooltip Plugin | Mapbox: the jQuery Map
Freelance Jobs Available
If Google is the Coca-Cola of Web search, Bing is RC Cola
wayfarer07 is online now
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 01-17-2009, 07:23 PM Re: Learning PHP6
amw_drizz's Avatar
Ultra Talker

Posts: 338
Name: Jon
Location: New York
Trades: 0
it took my host almost a year after php 5 was released till they upgraded to it.
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
Old 01-17-2009, 07:33 PM Re: Learning PHP6
Brian07002's Avatar
Defies a Status

Posts: 1,588
Name: ...
Location: ...
Trades: 0
I guess it wouldn't hurt to start on learning php 6, but don't think that will be the only book you will ever need. That won't be the case. And also, don't be dissapointed if you don't learn much, if anything new at all, as this book is new on the market, before the scripting language php 6 has even been released, so consider this book a Beta version of the real thing.
__________________
Sig Less - Have some site you want me to put here? Will put here for a couple of paypal bucks.
Brian07002 is online now
Reply With Quote
View Public Profile
 
Old 01-17-2009, 07:48 PM Re: Learning PHP6
NullPointer's Avatar
Will Code for Food

Latest Blog Post:
Easy PHP Search with Opera
Posts: 1,067
Name: Matt
Location: Irvine, CA
Trades: 0
The biggest change I'm aware of in PHP6 is the inclusion of namespaces so learning PHP5 vs PHP6 probably isn't that different. It might even be more appropriate at this point to start with PHP6 considering features that I don't think anyone should be using to begin with will be removed (magic quotes, register globals).

For anyone concerned with their php5 code not working in php6 watch at for short tags ( <% ) and ereg, both are being removed (to the best of my knowledge)
__________________
Tinsology | How to Post Code | EverythingDev
NullPointer is online now
Reply With Quote
View Public Profile
 
Old 01-19-2009, 08:03 PM Re: Learning PHP6
VirtuosiMedia's Avatar
Usability > SEO

Posts: 1,010
Trades: 0
I had thought, perhaps mistakenly, that the namespaces were being introduced in 5.3. What I would love is a consistent naming schema for functions.
VirtuosiMedia is offline
Reply With Quote
View Public Profile Visit VirtuosiMedia's homepage!
 
Old 01-19-2009, 08:28 PM Re: Learning PHP6
chrishirst's Avatar
Super Moderator

Posts: 22,225
Location: Blackpool. UK
Trades: 0
Quote:
What I would love is a consistent naming schema for functions.
You mean you would like it to look like it hasn't been written by a committee?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-19-2009, 08:29 PM Re: Learning PHP6
NullPointer's Avatar
Will Code for Food

Latest Blog Post:
Easy PHP Search with Opera
Posts: 1,067
Name: Matt
Location: Irvine, CA
Trades: 0
Quote:
Originally Posted by VirtuosiMedia View Post
I had thought, perhaps mistakenly, that the namespaces were being introduced in 5.3. What I would love is a consistent naming schema for functions.
I checked PHP.net and that's true. Every list of PHP6 changes I've seen however, cites namespaces as one of them. According to wikipedia 5.3 will include first-order functions, closures, and anonymous functions
__________________
Tinsology | How to Post Code | EverythingDev
NullPointer is online now
Reply With Quote
View Public Profile
 
Old 01-19-2009, 09:09 PM Re: Learning PHP6
VirtuosiMedia's Avatar
Usability > SEO

Posts: 1,010
Trades: 0
Quote:
Originally Posted by chrishirst View Post
You mean you would like it to look like it hasn't been written by a committee?
Developer 1: We shouldn't use any separators when naming our functions.
Developer 2: We should use underscores to name our functions.
Developer 3: We should use Hebrew for our error reporting.
Developer 4: We should use English for our error reporting.
Developer 5: Register globals is a good thing.
Developer 6: Register globals is a bad thing.
Developer 7: Input should be escaped automagically.
Developer 8: Input shouldn't be escaped automagically.

Committee: You're right...
VirtuosiMedia is offline
Reply With Quote
View Public Profile Visit VirtuosiMedia's homepage!
 
Old 01-21-2009, 07:19 PM Re: Learning PHP6
jason_bristol's Avatar
Ultra Talker

Posts: 301
Name: Jason Eyermann
Location: england bristol
Trades: 0
Well if you go on Amazon type PHP under books and then sort them by newest publication date, The first 20-25 are about PHP 6. For some reason there are no new books out for php 5. (going back over a year, just php 6).

The book I mentioned in my first post on this thread has lots of good reviews so i'll probably get that one. Thanks for all the feed back.
jason_bristol is offline
Reply With Quote
View Public Profile Visit jason_bristol's homepage!
 
Old 01-21-2009, 07:40 PM Re: Learning PHP6
NullPointer's Avatar
Will Code for Food

Latest Blog Post:
Easy PHP Search with Opera
Posts: 1,067
Name: Matt
Location: Irvine, CA
Trades: 0
Well the concepts being introduced in PHP6 are not a secret, and all of them are features that are already implimented in other languages so I don't see any reason why you would write a book about PHP5 when PHP6 will be out soon enough.

Just don't plan on using those features until PHP6 is out, and if you are trying to put together a portable app don't plan on using them even after it is out (unless you want to code two versions).
__________________
Tinsology | How to Post Code | EverythingDev
NullPointer is online now
Reply With Quote
View Public Profile
 
Reply     « Reply to Learning PHP6
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.17009 seconds with 13 queries