I am learning to use json_decode
. I want to try out some php code snippet using this, but I don't want to setup whole web service kind of system using web server,html etc etc..
Can I run some standalone php code on linux and see its output?
I am learning to use json_decode
. I want to try out some php code snippet using this, but I don't want to setup whole web service kind of system using web server,html etc etc..
Can I run some standalone php code on linux and see its output?
PHP has a command line interface
php myScript.php
(Note that many Linux distributions have separate packages for mod_php and php cli, so you might need to install it before you can use it)