View Full Version : What is the difference between PHP4 and PHP5.
ajay49560
08-25-2015, 07:18 AM
Hello Friends,
beastlinks777
09-01-2015, 03:33 AM
PHP5 removed register_globals, magic quotes, and safe mode. This was due to the fact that register_globals had opened security holes by intentionally allowing runtime data injection and the use of magic quotes had an unpredictable nature.
onestop
09-03-2015, 09:33 AM
I have no ideas.
cricketbat123
09-03-2015, 12:27 PM
I would also like to know the answer to this.
jane1
09-10-2015, 04:30 AM
Php 5 is advanced version of php 4 with some new features. Please visit the site for more info https://www.ntchosting.com/encyclopedia/scripting-and-programming/php/php4-php5-comparison/
ramskl
11-26-2015, 02:42 AM
PHP4 is more of a procedure language while PHP5 is object oriented.
In PHP5 one can declare a class as Abstract.
PHP5 incorporates static methods and properties.
PHP5 introduces a special function called __autoload()
PHP5 allows one to declare a class or method as Final
Alanah_Rae
11-27-2015, 12:52 PM
Some differences between PHP4 and PHP5 :
1. PHP5 removed register_globals, magic quotes, and safe mode. This was due to the fact that register_globals had opened security holes by intentionally allowing runtime data injection and the use of magic quotes had an unpredictable nature.
2. PHP4 was powered by Zend Engine 1.0, while PHP5 was powered by Zend Engine II.
3. PHP5 replaced magic quotes with the addslashes() function in order to escape characters.
4. PHP4 is more of a procedure language while PHP5 is object oriented.
Powered by vBulletin® Version 4.2.4 Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.