Pages

Friday, December 21, 2012

Run PHP file from windows command line

  1. Install WAMP in D drive
  2. In the D://wamp/www folder create a file called test.php and enter the following and save:
    
    <!--php
    echo 'Yipee! Welcome to PHP';
    ?-->
    
  3. Open the cmd (command prompt) in windows and change the directory path to: D:\wamp\bin\php\php5.4.3>
  4. Now type
    php d:\wamp\www\test.php

No comments: