| 
	
 | 
 Posted by robert on 05/03/06 05:14 
"Tom" <thall91739-nospam@yahoo.com> wrote in message  
news:rhR5g.40055$C63.4468@trnddc06... 
| My hosting company has php 4.4.2 installed. Most of the books and 
| tutorials available are for php version 5. Will using a version 5 
| book/tutorial work or should I search for a version 4 tutorial? 
 
90% of what your book covers should be fine in 4.4.2. there have been many  
functions added (like get_file_contents) that didn't exist prior to 5 and,  
some parameters have been added to others (like print_r...new param allows  
the output to be assigned to a variable or as inline output. 
 
the major things that won't work are classes. in php 5, there is a real,  
live constructor and other methods like __clone, __copy, etc.. any  
constructor will have to be renamed to the name of the class object. also,  
scope definitions are new to 5 (private, public, static, etc.). and the  
final "big one"...php 5 passes variables by reference rather than by  
value...the opposite of previous versions. 
 
i'd say, if you've got broadband, install your stuff on your pc and re-route  
your domain traffic to your pc...but that's just me. ;^) that may not be an  
option though, if you're working for someone else. if you just want to learn  
though...run it on your pc and simply browse http://localhost/ 
 
good luck.
 
  
Navigation:
[Reply to this message] 
 |