Hello Friends,
Hello Friends,
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.
I have no ideas.
I would also like to know the answer to this.
Php 5 is advanced version of php 4 with some new features. Please visit the site for more info https://www.ntchosting.com/encyclope...p5-comparison/
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
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.
|
Bookmarks