Methods and tricks for running PHP at the command line

Source: Internet
Author: User
Code that executes PHP files directly in Linux using the "php" command typically runs PHP files under the Linux command line: XML/-f php file path   For example:/opt/modules/php/bin/php-f/opt/data/www/yoururl/index.php   each time input PHP installation path is troublesome, in fact we can not enter the Oh! copy/opt/modules/php/bin/php This file to/usr/sbin, PHP will be installed as Linux command under Linux execute the following command XML//opt/ modules/php/bin/php  /usr/sbin  So you can use the XML/HTML code directly on the command linephp  -f/opt/data/www/ yoururl/index.php    executes the PHP program, eliminating the process of entering the path

Methods and tricks for running PHP at the command line

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.