Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
PHP5.5 installation/configuration
1°) Installation on unix system
grab sources from php.net
This version is in test, so fo...
2°) news Features
There are some new adds in this new version which allows to keep low memory.
Basic new functionalities a...
Array list :
<?php
$array= [
[1, 2, 3],
[3, 4, 5],
];
foreach ($array aslist($a, $b, $c)) {
echo "A: $a; B: $b; C: $c;n";
...
Upcoming SlideShare
Loading in …5
×

Php5.5

636 views

Published on

Published in: Technology, News & Politics
  • Be the first to comment

Php5.5

  1. 1. PHP5.5 installation/configuration 1°) Installation on unix system grab sources from php.net This version is in test, so for all projects you should test and not move in productions. Actually, there are two distributions php5.5 0RC1/php5.5 0RC2 *edit : you can have an alternative by using curl in php-osx.liip.ch curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5 - create a folder in /usr/local contains your version of php5.5 then, compile php: ~/Documents/php/php-5.5.10> ./configure --prefix=/usr/local/php5.5 ~/Documents/php/php-5.5.10>make //install by the compiler ~/Documents/php/php-5.5.10>make test //to test configuration ~/Documents/php/php-5.5.10>makeinstall //installation aftertesting :: all binarieswillbeinstalled makewill notice you locations of all your utilities Check the treefrom the origin of your php5.5
  2. 2. 2°) news Features There are some new adds in this new version which allows to keep low memory. Basic new functionalities are on generators, arrays, blocs cases and for password (hash) Have a look on major changes: •Boolval() -> Boolean conversion •Curl ->curl_escape(), curl_reset(), curl_share_close(), curl_share_init(), curl_share_setopt(), curl_unescape() •date ->datefmt_format_object(), datefmt_get_timezone(), datefmt_set_timezone() •hash_pbkdf2() •intlcal(), intlgregcal(), intltz(), json_last_error_msg()#json_decode() •openssl_pbkdf2(), •password_get_info(), password_hash(), password_need_rehash(), password_verify() •internationlisation ->IntlBreakIterator, IntlCalendar, IntlCodePointBreakIterator, IntlException, IntlGregorianCalendar, IntlTimeZone
  3. 3. Array list : <?php $array= [ [1, 2, 3], [3, 4, 5], ]; foreach ($array aslist($a, $b, $c)) { echo "A: $a; B: $b; C: $c;n"; } $tab = [ 'premier' => ['xxx', 'zzz'], 'second'=>['3.14','159'], ]; foreach ($tab as $key =>list($a, $b)){ echo"$key => $a, $bn"; } ?> finally : functionOther_Something_Else(){ echo date('y/m/d h:m:s'); } functionDo_Something(){ } functionSomething_Else(){ } try { Do_Something(); throw newException("exception"); } catch(Exception $e){ Something_Else(); //Throw exception/: } finally { Other_Something_Else(); } Hope you’ll find how to upgrade your project in beta test, and keep the rest in php5.4/5.3

×