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....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 |