TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
Advertisement
Associates
Associates
techtuts Darkmindz
CSS Tutorials Tutorialsphere.com - Free Online Tutorials
Boston PHP SurfnLearn
Reply
 
LinkBack Thread Tools Display Modes
Old 10-06-2007, 07:21 PM   #1 (permalink)
The Acquainted
 
obolus's Avatar
 
Join Date: Oct 2007
Location: florida
Posts: 110
Thanks: 36
obolus is on a distinguished road
Default Php4 & Php5

I've been learning PHP4 specifically since I first started my self-education of the language a few months ago. I've already finished 2 beginner books that weren't too in-depth and I'm going through a 3rd one now that covers all the details (and reading online tutorials in between). I recently read how PHP4 was no longer going to be supported in a few months, so I've considered stopping where I'm at now and picking up PHP5 stuff instead. Should I forget about that, stick with what I'm learning now (PHP4), and then just wait until I'm done to start learning the new stuff in PHP5? Forgive me for my lack of knowledge of new things available in PHP5 and changes that've been made from PHP4, I need to go to the PHP website and read up on that.
obolus is offline  
Reply With Quote
Old 10-06-2007, 09:02 PM   #2 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 700
Thanks: 2
Salathe is on a distinguished road
Default

For the majority of your immediate future in PHP programming, there really won't be all too much difference between the way PHP5 handles things compared to PHP4. In general, as with most new versions of software, the changes are additions -- new things built above and beyond what PHP4 could do (the Object Oriented changes being most significant for many people).

My advice would just be to learn using PHP5, since that's the current version. That way, it'll save you having to re-learn and/or adapt to the changes (eg, changes in the order of arguments for functions or new ways of doing certain things).

Again, perhaps I'm repeating myself a little too much but in reality there isn't all too much of a drastic change between PHP4 and 5, for the most part, and that's certainly the case for more introductory level things.
__________________

Last edited by Salathe : 10-06-2007 at 09:58 PM.
Salathe is offline  
Reply With Quote
Old 10-06-2007, 09:07 PM   #3 (permalink)
The Gregarious
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 563
Thanks: 15
Village Idiot is on a distinguished road
Default

On the contrary, 5 and 4 had a significant change, OOP was the largest of them. OOP changes the way you go about large projects, it is a huge difference in and of itself. I would learn php5 and only do that, php4 is discontinued by the php team.

I dont offer php4 coding services, I advise anyone on a php4 server to upgrade asap.
Village Idiot is offline  
Reply With Quote
Old 10-07-2007, 07:10 AM   #4 (permalink)
The Acquainted
 
obolus's Avatar
 
Join Date: Oct 2007
Location: florida
Posts: 110
Thanks: 36
obolus is on a distinguished road
Default

thanks for replies, I wanted to hear an opinion from some experienced coders that know how things work in both worlds. Next question: Should I start from the beginning again, from the basics, or should I just start where I am with php4 (OOP)?

thanks
obolus is offline  
Reply With Quote
Old 10-07-2007, 01:52 PM   #5 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 1,541
Thanks: 72
Wildhoney is on a distinguished road
Default

Seeing as how the OOP has been totally redone in PHP5, stop where you are at now with PHP4 and jump straight into the OOP in PHP5.

As Salathe said, there are some modifications to the language itself - such as different ways of doing things, but as PHP5's OOP is a world away from PHP4's, this is the time I think you should consider switching.

There's absolutely no need to go back to the basics though when you do switch - just if something isn't working how you wanted it to in PHP5 then take a look at the PHP manual to see if things have changed since PHP4. You'll soon adapt!
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Old 10-21-2007, 05:06 PM   #6 (permalink)
The Frequenter
Advanced Programmer Top Contributor Good Samaritan 
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 469
Thanks: 26
sketchMedia is on a distinguished road
Default

Quote:
On the contrary, 5 and 4 had a significant change
i think thats why Salathe said
Quote:
in reality there isn't all too much of a drastic change between PHP4 and 5, for the most part, and that's certainly the case for more introductory level
as OOP isnt considered an introductionary topic. Yes there have been some slight changes but most of it is backward compatable anyway so you really dont have much to worry about and as Wildhoney said just check the php docs, its a wealth of info.
My advice is to get going with PHP5 and learn OOP, its the way to go, especially if your future projects get large in size.
__________________
sketchMedia is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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


All times are GMT. The time now is 05:23 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0