How to use the PHP command line

  • Knowledge needed: Basic PHP
  • Requires: PHP
  • Project Time: About 10 minutes

Using PHP from the command line allows us to use our PHP skills in a whole new world. You can run individual PHP scripts and also run PHP ad-hoc, as you type it. There are tools to check the version and configuration of PHP, and get information about any of the functions, extensions and so on – perfect for being on a plane trying to remember if it's needle or haystack that comes first! Let's take a look at what we can do with this tool.

Thank you for reading 5 articles this month* Join now for unlimited access

Enjoy your first month for just £1 / $1 / €1

*Read 5 free articles per month without a subscription

Join now for unlimited access

Try first month for just £1 / $1 / €1

TOPICS

The Creative Bloq team is made up of a group of design fans, and has changed and evolved since Creative Bloq began back in 2012. The current website team consists of eight full-time members of staff: Editor Georgia Coggan, Deputy Editor Rosie Hilder, Ecommerce Editor Beren Neale, Senior News Editor Daniel Piper, Editor, Digital Art and 3D Ian Dean, Tech Reviews Editor Erlingur Einarsson and Ecommerce Writer Beth Nicholls and Staff Writer Natalie Fear, as well as a roster of freelancers from around the world. The 3D World and ImagineFX magazine teams also pitch in, ensuring that content from 3D World and ImagineFX is represented on Creative Bloq.