Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

How can I execute a PHP script using command line?

user-image
Question ajoutée par Ayman Shorman , Devops Manager , Smart Charging Technologies
Date de publication: 2013/06/12
Amr Olabi
par Amr Olabi , Technical Team Lead , Smart Charging Technologies

In command line run the following: php -a ;This will open interactive shell for php which can be used to write your script and run it immediately.
php -f yourScriptFile.php ; This will run the php script in your script file and return the output of execution.
php -r $PHPScript ; This used as run-as-you-type PHP, which is really useful for checking little snippets.

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?