News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Developer Tutorials Blog:
Testing PHP with the interactive shell
May 12, 2008 @ 07:57:34

Akash Mehta shares a helpful hint in this new post to the Developer Tutorials Blog today - testing out PHP code via the command line PHP binary.

Thankfully, PHP provides the interactive shell, allowing you to test out PHP interactively with immediate feedback. Here's how to take advantage of this mature feature of PHP.

With the help of the "-a" flag on the command line, the PHP binary will hand you an environment where you can code PHP and instantly see the results. He does mention a few quirks that make it different than working with PHP through a web server, namely moving in and out of code blocks and remembering to finish out with a semi-colon when the line is done.

0 comments voice your opinion now!
test interactive shell binary tutorial commandline


blog comments powered by Disqus

Similar Posts

KillerPHP.com: Zend Framework Components Part 2: Zend_View

Mike Willbanks' Blog: Getting Started with Nginx and PHP-FPM

Matthew Weier O'Phinney: Testing Code That Emits Output

Fabien Potencier's Blog: Symfony Service Container: Using XML or YAML to describe Services

Kevin Schroeder: If you develop for Magento, know your indexes


Community Events

Don't see your event here?
Let us know!


unittest wordpress api laravel5 extension php7 framework list series voicesoftheelephpant language community library interview podcast laravel release version introduction opinion

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework