Skip to content

Instantly share code, notes, and snippets.

@yetanotherdev267
Last active August 29, 2015 14:15
Show Gist options
  • Save yetanotherdev267/abb0243432a2e59c2d4d to your computer and use it in GitHub Desktop.
Save yetanotherdev267/abb0243432a2e59c2d4d to your computer and use it in GitHub Desktop.
How to run a PHP script on the fly which is fetched from an URL

#How to run a PHP script on the fly which is fetched from an URL#

php -r "readfile('https://getcomposer.org/installer');" | php

Params: -r run script

curl -sS https://getcomposer.org/installer | php

Params: -s silent, -S: show errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment