How can I execute a PHP script using command line?

Discussion in 'PHP' started by jessysmith1234, Oct 4, 2013.

  1. #1
    How can I execute a PHP script using command line?
     
    jessysmith1234, Oct 4, 2013 IP
  2. HolyRoller

    HolyRoller Well-Known Member

    Messages:
    552
    Likes Received:
    27
    Best Answers:
    1
    Trophy Points:
    150
    #2
    At the command line just type -
    php my_script.php
     
    HolyRoller, Oct 4, 2013 IP