| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #3 (permalink) |
| Senior Member Join Date: Sep 2005 Location: Herts, UK
Posts: 3,796
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | php5 has many new additions...php5 is now stable and good for production, however it cant hurt to do it in php4, that way you know its a bit more universal.
__________________ RickM Web Design Forums - Over 22,000 Web Designers & Programmers just like you! WSDReg - Affordable Domain Registration. Serving NP members since 2006! |
| |
| | #8 (permalink) |
| Account Closed Join Date: Jun 2005 Location: Mozambique
Posts: 607
![]() ![]() | Here's how: 1. Re-Usable classes - No need to assign variables to data and process it though various functions individually. 2. No more tag checking and parsing individual XML tags with SAX etc. Just use SimpleXML class and have all the data available neatly in array form. 3. PHP5 has better exception handling, making it easier to debug the code. There are plenty of new features that make life easier with PHP5. |
| |
| | #12 (permalink) | ||||
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,069
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | I would personally recommend learning version 4 for the simple reason it is what is mostly used in servers at this current moment in time. php 5 if I remember correctly has been available for about 2 years and as of yet has not taken over from php 4.
If php 5 is installed as is intended using the main default setup the majority of larger applications just will not run on the server. | ||||
| |
| | #13 (permalink) | ||||
| Account Closed Join Date: Jun 2005 Location: Mozambique
Posts: 607
![]() ![]() |
| ||||
| |
| | THREAD STARTER #16 (permalink) |
| NamePros Member Join Date: May 2006
Posts: 133
![]() ![]() | Ok i decided to order a php and mysql book from amazon and this book covers PHP5, if that means paying more to get a php5 host well it will have to do
Last edited by spacetrain; 06-23-2006 at 04:40 AM.
|
| |
| | #17 (permalink) |
| Professional Monkey Join Date: Jul 2005 Location: Escaped from the zoo
Posts: 907
![]() ![]() | I would definately learn php5 if your server supports it, php4 and php5 are miles apart. i learnt 4 and know am having to play catch up to get to grips with version 5
__________________ Webmaster Words |
| |
| | #18 (permalink) |
| Account Suspended Join Date: Jun 2006 Location: Mumbai, India
Posts: 376
![]() ![]() | PHP4. Work on to that. if you are coding your own website, keep it simple & easy to code. No need of OOPS concept for a normal website, procedure based programming is fine. Also I dont think so that he needs exception handling, SAX at this stage. Even to process XML their many classes out there on the net which break xml to an array. Well dude don't just use a latest version because it is new, keep your goal in front of everything else. Looking for fast, quick output and less time on maintainance then use PHP4. Also many server still do not have PHP5 on to them. |
| |
| | #21 (permalink) |
| Buy my domains. Join Date: Feb 2006
Posts: 2,796
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | I have PHP4 and PHP5 installed on my computer. I can change back and forth with the click of a button. I code the same no matter which version I am using, and my code works the same with both versions. As far as I can tell, the only difference might be more functions and maybe it does some things faster. I didn't set it up to run anything like anything else. All I did was install it. |
| |
| | #22 (permalink) | ||||
| A Wealth of Knowledge Join Date: Aug 2004
Posts: 3,809
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
????: NamePros.com http://www.namepros.com/programming/209852-php-4-or-5-a.html -Steve | ||||
| |