A simple command for the shell to run a PHP script

Source: Internet
Author: User
Tags php script

Recently doing a small brush database function, you need to batch add to different tables, write good php files, log on to a server

The command to upload a file: rz a pop-up box can be selected to upload a file

Execute file and report error COMMAND:/USR/LOCAL/PHP-5.6.10/BIN/PHP-NL sousuojieguo.php where php-5.6.10 is serving PHP version

Execute File no error:/usr/local/php-5.6.10/bin/php sousuojieguo.php

View the file under the directory: LS

Download a file: sz sousuojieguo.php

View a piece: cat sousuojieguo.php

Removing a file: rm sousuojieguo.php

Modify directory: cd/to root directory

Enter editor: vim enters editable exit click ESC and Then: Wq Save and exit

These are now used, and subsequent additions will continue to Increase.

A simple command for the shell to run a PHP script

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.