|
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
- Freelance Web developer wanted
- Ringtone fatigue
- web developer looking for more project
- PHP website maintenance
- Desk available for hire - Rushcutters Bay location
- ZAMP?
- Don't hack the Drupal Core. Make a patch!
- What to charge for site updates
- Start New Website or CMS business. Business Partner / designer
- Code snippets in Google Search Results
- [syd] Freelance developer - .NET/ PHP/ Actionsctipt / DHTML
- Tester needed
- Freelance SharePoint 2003 / 2007 Consultant
- Joomla and Community Builder Module
- PHP export to CSV


Post new comment