Forums Programming Assignment Help How can I execute a php script using command line

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4021
    Aakanksha
    Participant

    How can I execute a php script using command line?

    #11597
    Aakanksha
    Participant

    Just run the PHP CLI (Command Line Interface) program and provide the PHP script file name as the command line argument. For example, “php test.php”,assuming “php” is the command to invoke the CLI program.Be aware that if your PHP script was written for the Web CGI interface, it may not execute properly in command line environment.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.