How can I execute a PHP script using command line?
Answer Posted / tamilselvan
PHP script using command line can be executed using SAPI
(Server Application programming Interface). Using SAPI
Command Line Interface the PHP code can be passed to execute
directly
Example:
Php –r ‘print_r(get_defined_constanrs());’
From a shell, php –v will display whether the SAPI is CLI or CGI
| Is This Answer Correct ? | 12 Yes | 4 No |
Post New Answer View All Answers
Who is the father of php?
What is 'float' property in css?
What happens if an expected input field was not submitted?
What is data structure in php?
What are the uses of implode() function?
How do I stop a php script?
What is nan value?
How can I embed a java program in php file and what changes have to be done in php.ini file?
What is the meaning of "enctype= multipart/form-data" ?
What is the empty function?
What is the use of explode() function?
What are escaping characters?
Which php function will attach one file to another?
Tell me how is it possible to parse a configuration file?
hello all, I need some sample placement papers in lion bridge.. can anyone help me?