PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information

Amazium Blog: PHP in the Dark: Input/Output

Note: This article was originally published at PHPDeveloper on 6 September 2011.
PHPDeveloper

On the Amazium blog Jeroen Keppens has a recent post looking at some of tools available to you when needing to filter input and escape output in your applications. This post specifically covers filtering on command line applications.

When you need data input in a web context, you send a GET/POST request to your script. On the command line, things work differently. In this blog post, we will talk obout input and output in php-cli.

The post is broken up into a few different sections:

Tools mentioned include everything from getopt and PEAR's' Console_Getopt out to using file descriptors and working with readline.