Infomani

Hi, this is for U only.Do well, Feel Free…

  • No of Hits

    • 6,967 hits
  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 8 other followers

  • Time is Now

    October 2012
    M T W T F S S
    « Aug   Nov »
    1234567
    891011121314
    15161718192021
    22232425262728
    293031  
  • Zip

  • Advertisements
  • My Recent Tweets

    • @AbhiKarthick To keep poster only... There is no doubt in that. 1 day ago
    • RT @KaruNeelamMedia: போராடிப் பெற்ற 1500 கோடி எய்ம்ஸ் மருத்துவமனை போராடாமல் பெற்ற 10000 கோடி எட்டு வழிச்சாலை யாருக்குப் பயன் ? | #கருநீலம்… 1 month ago
    • RT @jigneshmevani80: The Dr. Kafeel who saved children when Yogi Aadityanath gov had no money to pay for oxygen. He was put behind bars. No… 2 months ago
    • RT @PTTVOnlineNews: விவாத நிகழ்ச்சிகளுக்கெல்லாம் வழக்குப்பதிவு செய்வதாக இருந்தால் இந்தியாவில் பல தொலைக்காட்சிகள் மீதும் நாளொன்றுக்கு பல நூ… 2 months ago
    • RT @GunasekaranMu: தமிழகத்தில் நீட் எழுதியோர் 1.14 லட்சம். தனியார் மையங்களில் கட்டணம் ஒரு லட்சம் வரை! ரூ.2 லட்சம் செலவிட்ட பெற்றோர்களும் உ… 2 months ago
    • RT @vikatan: நீட் தேர்வில் தோல்வியடைந்ததால் விழுப்புரத்தைச் சேர்ந்த மாணவி பிரதீபா என்பவர் தற்கொலை செய்துகொண்டார். இந்தச் சம்பவம் பெரும் அதி… 2 months ago
    • RT @PTTVOnlineNews: மருத்துவமே படிப்பேன் என இலட்சியம் கொண்ட பிரதீபா - உயிரை மாய்த்துக் கொண்ட பரிதாபம் goo.gl/uDrNxe 2 months ago
  • Blogs I Follow

New Features of PHP 5.4.x

Posted by Manikandan.MS on October 29, 2012


I am very happy to write about this article because new interesting things inside new versions of php 5.4.x. I am going to explain few of new added features one by one on the following paragraphs.

Improved performance and reduced memory conception is one of the key features added in it. The first one is Traits, it’s a method of code reusability, implemented from php. In the object oriented scripting the traits allows to access sets of methods freely and independently. While inheriting classes, the traits enable to reuse code in a single inheritance. We can directly call particular hierarchies methods using traits.

The next parameter is closures. It’s nothing but anonymous functions. It allows creating functions without specified name. Now can use “$this” key value inside closures functions. Not only for this one, also has it had many other uses.

Short array syntax that is array improvement has been added in it. Short open tag “<?=” is now always available, only need to config in php.ini file to enable short open tag. Parse error message and incompatible arguments warnings have been improved.  Functions array dereferencing and binary number format have been added. By using binary number format we can easily calculate any arithmetic manipulation and no need to convert to binary format through own scripting technique.

The next parameter is built in web server. Php now support own small web server for only development purpose not for production server. The built in web server provides, the developer can test their files using this.  localhost:8000 this port allows users can execute their files. Specifying document root and php router file in command line is also possible.  The php router script file executes every request.

Upload progress of files now achieved through session extension. In the past, getting upload file progress through external packages. But now can get the upload file prograss through session data. For this, need to enable in php.ini file to use upload prograss. By using the following code this “<?php echo ini_get(“session.upload_progress.name”); ?>” can get upload progress data.

The php 5.4.x has been removed few features as well as they newly added for the purpose of their internal use. magic_quotes(), safe_mode() and register_global() functions were removed. Also the allow call time pass reference function was removed. UTF-8 is the default char set in php.ini file.

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s

 
Pradeep

Why We live

TechView Mani

A blog of New Technologies

Infomani

Hi, this is for U only.Do well, Feel Free...

%d bloggers like this: