How run PHP in Linux command line?
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 > .
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 > .