|
Web Contractors Web Developer Jobs Join Us / Log in Discussion |
PHP from command line
Submitted by rimian on Tue, 10/07/2008 - 00:50
Run a php script in-line on cli like this:
php -r 'print "hello world";'
Execute a file:
php -f script-name.php
Running php from the command line means you can do real cool stuff like:
How to find your php.ini file
php -r 'phpinfo();' | grep php.ini
This will return the location of your php.ini file.
Or alternatively you can use the info option:
php -i
New forum topics
- [MELB] Web Developer | Web Designer | Graphic Designer | Marketing Manager
- Open Source Online Invoicing Software
- Professional Drupal Consulting, Design & Development Services in Australia
- New Year Speacial-Professional Website for 400$ with doamin+Host
- Ruby on Rails Oceana
- WebDev/Design/Research/Consultant - PHP/MySql, Javascript, Joomla, HTML, Flash, AJAX
- Freelance ASP.NET Developer
- System Monitoring with Nagios
- Learning Ruby? What about the RubyMentor Project?
- Need a team
- JAOO Sydney/Brisbane 2009
- Get Your Business a Website for $399 ONLY !!!
- Concrete5: Another CMS!
- Manage The Cloud with Amazon Web Services
- Crystal Reports developer needed


Post new comment