|
Posted by J.O. Aho on 02/06/07 08:09
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
[Back to original message]
|