SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: PHP Basic

  1. #1
    Non-Member
    Join Date
    Aug 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up PHP Basic

    How can I execute a PHP script using command line?

  2. #2
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,222
    Mentioned
    153 Post(s)
    Tagged
    0 Thread(s)
    Code:
    /path/to/php/executable /path/to/php/file
    Example (Linux):
    Code:
    /usr/bin/php/php5 /var/www/myphpscript.php
    Example (Windows):
    Code:
    C:/php5/php.exe C:/inetpub/wwwroot/myphpscript.php


Bookmarks

Posting Permissions

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