We are trying to run the php file using command line but we got the error “php is not a function”. So how we resolved this error
Now Let’s Start

1) Go to My Computer > Properties
2) Click on Advance setting
3) On the popup box click on “Environment Variable”
4) Choose the “Path” from system variable and click on Edit button to write the path
5) Append the path of php with semicolon



6) Save the Path info.
7) Restart your system
8) After restarting the system use php command to execute the file using command line.