How do I run a PHP file in Linux terminal?

Nguyên Lê

New member
How do I run a PHP file in Linux terminal?
Answer
php phpinfo(); ?> , simply by running the below command. and then point your browser to http://127.0.0.1/infophp.php which opens this file in web browser. Here Option ‘-f’ parse and execute the file that follows the command. Here the option ‘-r’ run the PHP Code in the Linux Terminal directly without tags < and > .
 

Tìm kiếm

Back
Top