Computersnyou

php 5.4 introduced inbuilt web server

Posted on  3/20/2012
php 5.4 is released on 1st march 2012 , and it has inbuilt web server for development purpose as announced on php.net website you can start web server using command line tool for your development here is release statement

“The PHP development team is proud to announce the immediate availability of PHP 5.4.0. This release is a major leap forward in the 5.x series, which includes a large number of new features and bug fixes.

<p>
  Some of the key new features include: traits, a shortened array syntax, a<b> built-in webserver for testing purposes and more</b>. PHP 5.4.0 significantly improves performance, memory footprint and fixes over 100 bugs. &#8220;</i></span>
</p>

<div>
  <span style="font-family: 'Trebuchet MS', sans-serif;">if you want to give a try download latest php from <a href="http://www.php.net/downloads.php">http://www.php.net/downloads.php</a> <br />and windows users&nbsp;</span>
</div>

<div>
  <i><span style="font-family: 'Trebuchet MS', sans-serif;"><a href="http://windows.php.net/download/">http://windows.php.net/download/</a>&nbsp;</span></i>
</div>

<div>
  <i><span style="font-family: 'Trebuchet MS', sans-serif;"><br />Direct Download Link : <a href="http://windows.php.net/downloads/releases/php-5.4.0-nts-Win32-VC9-x86.zip">http://windows.php.net/downloads/releases/php-5.4.0-nts-Win32-VC9-x86.zip</a>&nbsp;</span></i>
</div>

<div>
  <span style="font-family: 'Trebuchet MS', sans-serif;"><i>and extract &nbsp;the file&nbsp;</i></span>
</div>

<div>
  <span style="font-family: 'Trebuchet MS', sans-serif;">if you are in&nbsp;Ubuntu&nbsp;or others debian based Linux distribution&nbsp;</span>
</div>

<div>
  <span style="font-family: 'Trebuchet MS', sans-serif;">use command<br />$sudo apt -get update && apt-get upgrade <br />$sudo apt-get install php </p> 
  
  <p>
    <b><i>How to use inbuilt web server :</i></b><br /></span></div> 
    
    <div>
      <span style="font-family: 'Trebuchet MS', sans-serif;">&#8220;cd c:webdevolpmentfolder &#8220;<br />&#8220;php -S localhost:8000 &#8220;</span></p> 
      
      <p>
        <a href="http://2.bp.blogspot.com/-KBjxJMt5pT8/T2fk0GwED0I/AAAAAAAACHI/uWIQrCD1r_k/s1600/php.png"><img border="0" src="http://2.bp.blogspot.com/-KBjxJMt5pT8/T2fk0GwED0I/AAAAAAAACHI/uWIQrCD1r_k/s640/php.png" /></a>
      </p>
      
      <p>
        <a href="http://2.bp.blogspot.com/-gtZyZX-rSM4/T2fk1Q25wXI/AAAAAAAACHQ/RZ2Bf2TwRQI/s1600/term.png"><img border="0" src="http://2.bp.blogspot.com/-gtZyZX-rSM4/T2fk1Q25wXI/AAAAAAAACHQ/RZ2Bf2TwRQI/s640/term.png" /></a>
      </p>
      
      <p>
        <span style="font-family: 'Trebuchet MS', sans-serif;">NOTE : &nbsp;windows users <br />add php installation directory in your environment variables $PATH before using it from command line</span></div> </div>

  • Home
  • About