
Are you ready to try the new features in PHP6 ?.
If so here i will cover some of its new feautes:
Register Globals: Register Globals was first used in PHP3, and it is been a vital component of PHP till version 6, as it has been removed from version 6 as its considered a security risk.
Say goodbye to the long variables!: Long variables like HTTP_*_VARS instead you will be start using those old ones like COOKIE_$ , SESSION_$, POST_$.
And Say goodbye to the Magic Quotes: Magic Quotes has been discarded in version 6 "This feature has been DEPRECATED and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged". Ofcourse this will affect magic_quotes ، magic_quotes_sybase
And Again Say goodbye to SafeMode: For the fist while i was like wtf! how come there is no SafeMode!!. Well it has been replaced with open_basedir which is supposed to have more features than SafeMode.
No more GD 1 and Freetype 1 : As both became kinda old, both will be removed in PHP6.
ifsetor: Before PHP6, we used to use:
$var = (isset($var) ? $var : 'default');
In PHP6 the it will be like:
$var = ifsetor($var, 'default');
or
function ifsetor(&$var, $or) {
return (isset($var) ? $var : $or);
}
No comments:
Post a Comment