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
    New Coder
    Join Date
    Apr 2004
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Executing PHP code from a command line

    Is there any way to run a chunk of PHP code I have (to alter an SQL database I have) from a command line? Like, using an .exe with some parameters indicating the file or something?

  • #2
    New Coder
    Join Date
    Mar 2003
    Location
    Hong Kong
    Posts
    42
    Thanks
    0
    Thanked 0 Times in 0 Posts
    type in the command prompt

    php filename.php


  •  

    Posting Permissions

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