Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Apr 2005
    Posts
    388
    Thanks
    0
    Thanked 0 Times in 0 Posts

    using a php script from linux command line

    Howdy, Happy Turkey Day,
    Does anybody here know how to start a php script from a linux command line. I have written a little script that needs to end with a php script but I cant get it to work.

    thanks.

  • #2
    Senior Coder gsnedders's Avatar
    Join Date
    Jan 2004
    Posts
    2,340
    Thanks
    1
    Thanked 7 Times in 7 Posts
    Unless PHP was compiled without the CLI (which is unusual), you should be able to use the command
    Code:
    php [options] [-f] <file> [args...]
    or
    Code:
    php [options] -r <code> [args...]


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •