How to use and run PHP scripts from the Linux command line, the Linux command line PHP script
The following is an illustrated way to share with you under the Linux command to use and run PHP scripts.
PHP is an open source server-side scripting
PHP features: the command line mode starts with version 4.3.0. PHP provides a new type of cli sapi (Server Application Programming Interface, Server Application Programming Port) support, named CLI, command Line Interface, that is, Command Line
Transferred from: http://www.cnblogs.com/myjavawork/articles/1869205.htmlNote: You will need to add the PHP installation directory to the environment variable PATH when you install PHP(Right-click My Computer, properties, high-level environment
The following is an illustrated way to share the use and running of PHP scripts through Linux commands.
PHP is an open source server-side scripting language, which initially represents the "Personal home Page", and now represents "Php:hypertext
Starting with version 4.3.0, PHP provides a new type of CLI SAPI (Server application Programming Interface, service-side application programming port) support, called CLI, which means Command line Interface , which is the command-line interface. As
Introduction to PHP command line usage, PHP command line usage
PHP is a very popular web service-side scripting language. In fact, PHP can not only play an important role in the Web server. Can be executed at the command line.
In this article, I
Check PHP information# php-f/var/www/html/infophp.phpChecking PHP information from the command lineBecause the output is too large, we can pass the above output to the command through the pipeline, less so we can output one screen at a time, the
This section describes how to execute the PHP script code in the command line. The actual purpose is to use php.exe. therefore, pay attention to setting environment variables. Create a simple text file that contains the following PHP code and save
Command-line execution under PHP
The following are the options parameters for the command-line mode provided by the PHP binaries (that is, the php.exe program), which you can query at any time by using the php-h command.
usage:php
PHP command line? Yes, you can!
Use PHP for general purpose scripts and use the command line interface for PHP debugging
Learn how to debug PHP code from the command line and experience the power of PHP itself as a shell scripting
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.