How can I execute a PHP script using command line?

Answer Posted / nikunj

By using CLI ( command line interface)

On command prompt type : php filename

Is This Answer Correct ?    33 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the expansion of LAMP?

613


How to access a global variable inside a function?

532


Which will check if a function exists?

591


What is use of header() function in php?

543


What websites use php?

515






When do sessions end?

539


What types of loops exist in php?

536


How many functions are there in php?

517


What is the use session in php?

544


Do you know how can we check the value of a given variable is a number?

515


Name some of the constants in php and their purpose.

531


What is phpsessid?

514


Is age interval or ordinal?

520


What is php's mysqli extension?

561


Why do we need session?

531