FEATURES OF PHP

Posted on Updated on

FEATURES OF PHP

MIMsorts in the CLI web serverE

MIME sorts in PHP can be utilized to yield  as a sort other than PHP, that is, as a sort other than /html. When you run a PHP page, the default yield is /html, however you can utilize headers to set it as, PDF and produce PDF documents. At the point when a server knows about various MIME sorts, as most servers like HHVM, Apache and Nginx generally are, they know how to serve a given record as a matter of course, in light of its augmentation, without you setting particular directions in PHP itself. The summon line server from PHP 5.4 had just a couple MIME sorts in this way, and this rendition will present handfuls more. It’s protected to say that all the basic MIME sorts will be secured by the implicit PHP server now.

Inner Operator Overloading

This is an element we as web designers utilizing PHP most likely won’t be presented to, due to the catchphrase “inner”. Inner signifies “non userland” where userland is the zone of PHP advancement we, the end clients of PHP, use. It applies just to inward classes, with a specific end goal to make advancement around there more straightforward and code cleaner to peruse. A definite clarification can be found here.

Transfers of more than 2GB are presently acknowledged

Until 5.6, no transfers of 2GB and over were bolstered in PHP. This is no more the case, as the changelog states, and transfers of discretionary size are currently upheld.

POST data memory usage decreased

POST data memory usage has been shrunk by 2 to 3 times, following two removals: thealways_populate_raw_post_data setting from php.ini, and the superglobal variable $HTTP_RAW_POST_DATA. What this means is you can no longer access raw post data that way, but need to rely on a solution such as:

        $postdata = file_get_contents(“php://input”);

Note that getting POST via ://input is unavailable when a form is multipart (in other words, when a form has a file upload element).

Improved syntax for variadic functions

Variadic functions are functions which can take an arbitrary amount of arguments. When you supplied some arguments to it, you usually had to do some splicing after calling func_get_args, which was somewhat impractical. As taken from example here, the syntax in 5.5 and earlier was:

class MySQL implements DB {

    protected $pdo;

    public function query($query) {

        $stmt = $this->pdo->prepare($query);

        $stmt->execute(array_slice(func_get_args(), 1));

        return $stmt;

    }

    // …

}

$userData = $db->query(‘SELECT * FROM users WHERE id = ?’, $userID)->fetch();

Conclusion

PHP 5.6, which as of this minute still doesn’t have a discharge date, certainly looks encouraging, and ideally this short outline of the changelog helped you see how imperative it will be for you to update when it’s out, if by any means. For the rest of the overhauls, please see the NEWS document, and continue inquiring for upgrades. In the event that I’ve missed something imperative, or confounded something, please let me know in the remarks beneath.

For more details and queries please feel free to email, visit or call us. Wishing you the very best for all your future endeavors.

Helpline: 9814666333, 8699444666

Email:info@technocampus.co.in

**************************************************************************************************************

Please fill the FORM and we shall contact you soon.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s