Posts Tagged ‘PHP’

PHP 7 moves full speed ahead

Posted: November 7, 2014 in PHP
Tags: , , , ,

PHP 7 Move Full Speed

Next major version of server-side Web development language planned for release in the next year
PHP 7, a major update to the server-side scripting language due next year, will offer performance improvements and more capabilities, along with deprecation of some existing features.

The release will be anchored by performance enhancements derived from the phpng branch of the PHP tree. Officials from PHP tools vendor Zend Technologies discussed the progress of phpng and PHP 7 at the company’s ZendCon conference in Silicon Valley this week. “[The upgrade is] really focused on helping real-world applications perform significantly faster and plus, we’re going to have additional improvements in PHP,” said Zend CEO Andi Gutmans, who has been involved in the ongoing development of PHP.

Recent versions of PHP have been part of the 5.x release series, but there will be no PHP 6. “We’re going to skip [version] 6 because years ago, we had plans for a 6 but those plans were very different from what we’re doing now,” Gutmans said. Going right to version 7 avoids confusion.

The phpng improvements in version 7 have been focused on areas such as hash tables and memory allocation. A chart on the state of phpng as of this month, presented at the conference, had the technology producing a 35 percent speedup on synthetic tests; 20 to 70 percent performance improvements on real applications, including a 60 percent improvement on WordPress home pages, and better memory consumption for most useful server APIs. The technology supports most PHP extensions bundled into the PHP source distribution and provides speed comparable to the HHVM 3.3.0 open source virtual machine.

A PHP developer at the conference expressed optimism about phpng. “Obviously, speed is the most important thing to a Web app or any app in general,” said developer Pete Nystrom, vice president of engineering and co-founder at Classy.org, an online fundraising platform. While recognizing it would be a while before the technology was available in tools, Nystrom understands what’s at stake. “Obviously, going into the core and speeding up all these functions that are core to PHP is a massive undertaking and something that’s going to be great for all of us.”

Also on tap for PHP is elimination of some existing features. “We’re going to deprecate some old functionality that we think is not that interesting anymore,” Gutmans said. Ext/ereg and ext.mysql are on the deprecation list and have both been replaced by other extensions. Other deprecated features include # style comments in ini files and string category names in setlocale().

Advertisements

The tech industry’s movers and shakers have been saying for months now that the HTML5 is very important. New data released Friday indicates that HTML5 is not just going to be big, it’s going to be huge — and it’s coming fast.

More than 2.1 billion mobile devices will have HTML5 browsers by 2016, up from just 109 million in 2010, according to a new report by ABI Research. Much of this growth will be thanks to Apple’s massive support for the HTML5 platform, according to the study. And Apple is also likely to be one of the biggest beneficiaries of the technology’s wide scale adoption. Because Apple has so much control over its software and devices, it will be most poised to take full advantage of HTML features as they emerge in the coming years.

As is often the case in business, where there’s a winner, there’s usually a loser. HTML5 could largely replace Abobe’s proprietary Flash technology. And HTML5′s swift ascent could render Flash irrelevant in short order. “I think the disappearance of Flash is closer than people think,” ABI senior analyst Mark Beccue said in a press release accompanying the data.

HTML5′s projected growth is all the more impressive considering that the actual standard is not officially expected to be completed until 2020, according to the World Wide Web Consortium (W3C) standards body. But that won’t stop companies and independent engineers from developing and deploying HTML5 features, ABI said.

Indeed, Facebook CTO Bret Taylor has said his company is putting a “huge amount of our investment” in HTML5, and Google recently debuted its first homepage doodle composed entirely with the HTML5 mark-up language. It may seem like buzz about HTML5 is everywhere already, but if the latest research is correct, we’re only at the beginning.

Today millions of websites and servers across the Internet are powered by PHP. Originally created by Rasmus Lerdorf in 1995 so that anyone can easily create a Personal Home Page; PHP has come a long way and is now widely used as general purpose scripting language that is suitable for majority of web development projects.

Numerous PHP Frameworks have evolved to enable rapid web development with PHP. However even greater number of standalone PHP libraries and classes are available which provide similar benefits. W3Avenue has compiled a list of some really useful classes and libraries that every PHP developers should be familiar with. Whether you like to use a PHP Framework or prefer to work without one, your productivity can multiply with the help of these libraries and classes.

****************************************************
(more…)

As Developer.com mentions in a new article, there’s a new video tutorial posted over on Internet.com about using PHP and JSON to pass around data in your applications.

Got seven minutes to learn how you can harness the power of PHP, JavaScript and JSON in a powerful AJAX-driven web application? This Internet.com Video tutorial shows you all you need to know to pass data between the client and server using JSON data format.

The video explains a bit about JSON+PHP and shows you how to send a simple message (book-related data) to the server and how to handle the response with a little help from jQuery’s Ajax functions.