SlideShare is now on Android. 15 million presentations at your fingertips.  Get the app

×
  • Share
  • Email
  • Embed
  • Like
  • Private Content
 

What's New in PHP 5.4

by Developer Advocate at Constant Contact on Mar 02, 2012

  • 9,278 views

A quick overview of some of the changes and new features in PHP 5.4 including binary notation, short-hand arrays, dereferencing arrays, traits, class instantiation chaining, session_status, ...

A quick overview of some of the changes and new features in PHP 5.4 including binary notation, short-hand arrays, dereferencing arrays, traits, class instantiation chaining, session_status, sessionHandler, session file upload tracking, and the new built in web server.

Statistics

Views

Total Views
9,278
Views on SlideShare
9,068
Embed Views
210

Actions

Likes
10
Downloads
156
Comments
3

9 Embeds 210

http://www.redditmedia.com 98
http://www.mikestowe.com 34
http://www.jefersonperito.com 29
http://localhost 20
http://magic-software.ro 14
http://www.linkedin.com 10
https://twitter.com 3
http://wonder-tonic.com 1
https://www.linkedin.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via SlideShare as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

13 of 3 previous next Post a comment

  • NecipSAMIM Najeeb Samim at Aria Systems in the previous version of PHP I was using SESSION_START( ); in login-form loading page, there were no problem, it was working properly, but now with the PHP 5.4.8 its not supporting(not loading the page which comes after login-form) for e.g:

    session_start();
    include ('con.php');
    // username and password sent from form
    $myusername=$_POST['myusername'];
    $mypassword=$_POST['mypassword'];
    // To protect MySQL injection (more detail about MySQL injection)
    $myusername = stripslashes($myusername);
    $mypassword = stripslashes($mypassword);
    $myusername = mysql_real_escape_string($myusername);
    $mypassword = mysql_real_escape_string($mypassword);

    $sql='SELECT * FROM members WHERE username='$myusername' and password='$mypassword'';
    $result=mysql_query($sql);

    // Mysql_num_row is counting table row
    $count=mysql_num_rows($result);

    // If result matched $myusername and $mypassword, table row must be 1 row

    if($count==1){

    // Register $myusername, $mypassword and redirect to file 'login_success.php'
    session_register('myusername');
    session_register('mypassword');
    header('location:login_success.php');
    }
    else {
    header('location:index.php');
    }
    .

    Can anyone asset me please,
    1 year ago
    Are you sure you want to
    Your message goes here
    Processing…
  • mikestowe Michael Stowe, Developer Advocate at Constant Contact Thanks Mak! Just a couple corrections:
    - break and continue are statements and not functions, so disregard the parenthesis following them.

    - http_response_codes should be http_response_code (singular)

    - And zend.multibyte support is actually 'off' by default
    2 years ago
    Are you sure you want to
    Your message goes here
    Processing…
  • makdiose Mak Diose, Web Developer Lead This is very nice and awesome. thanks for sharing Michael. 2 years ago
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

What's New in PHP 5.4 What's New in PHP 5.4 Presentation Transcript