Learning PHP; text from 2001, good or not?

This is a discussion on Learning PHP; text from 2001, good or not? within the PHP General forums, part of the PHP Programming Forums category; Hi, I have a slightly old text for learning PHP. It's from 2001, which is before PHP 5.2....


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-06-2007
Bruce Whealton
 
Posts: n/a
Default Learning PHP; text from 2001, good or not?

Hi,
I have a slightly old text for learning PHP. It's from
2001, which is before PHP 5.2.x I think it is using PHP 4.x.y. Has PHP
changed radically enough that the
techniques taught back then will just cause problems?
I know that Set Globals or something like that is very
discouraged now. So, there are differences but are they
enough to not use this older text if writing code for PHP 5.2.x?
Thanks,
Bruce


Reply With Quote
  #2 (permalink)  
Old 02-06-2007
J.O. Aho
 
Posts: n/a
Default Re: Learning PHP; text from 2001, good or not?

Bruce Whealton wrote:
> Hi,
> I have a slightly old text for learning PHP. It's from
> 2001, which is before PHP 5.2.x I think it is using PHP 4.x.y.


Yes, if you are lucky it's PHP4, it's just a year after the release, so it
could still be PHP3.


> Has PHP changed radically enough that the
> techniques taught back then will just cause problems?
> I know that Set Globals or something like that is very
> discouraged now.


One of the major differences is the globlas, instead of using the variable
directly, you need to get it from the $_REQUEST. With version some functions
changes too, as rand() that don't need srand() anymore.


> So, there are differences but are they
> enough to not use this older text if writing code for PHP 5.2.x?


I would suggest you get yourself something written fro PHP5 is you are going
to use php5.2, as there are loads of new things for it.

--

//Aho
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

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

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



All times are GMT +1. The time now is 06:09 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0