Top Ad unit 728 × 90

ticker

How to running my PHP code in [CMD] Command Prompt

Running PHP Script from Command Prompt:

Yes you can run your PHP script on your command prompt. Assuming you have following content in test.php file

<?php
   echo "Hello PHP!!!!!";
?>

Now run this script as command prompt as follows:

$ php test.php

It will produce following result:

Hello PHP!!!!!
How to running my PHP code in [CMD] Command Prompt Reviewed by Rajat Jha on 20:27:00 Rating: 5

No comments:

All Rights Reserved by INFO PHP 99 © 2014 - 2015
Powered by Blogger, Designed by Sweetheme

Contact Form

Name

Email *

Message *

Powered by Blogger.