| In command line how can we execute PHP script file?
To execute PHP script we have to use PHP command in command line. To understand this we will take a example of PHP file which is testfile.php. And below is the syntax to run the script in command line.
php testfile.php | | |