Re: Command line PHP
| From: | David Hutto | Date: | Sat, 08 Jan 2011 01:36:02 +0000 |
| Subject: | Re: Command line PHP | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-310587@lists.php.net to get a copy of this message | ||
I'm with some of the others above on using Python. Writing a command
line app is about as simple as:
import subprocess
word = 'hello'
self.espeak = subprocess.Popen(['espeak', word], stdout =
subprocess.PIPE).communicate()[0]
I think of PHP as more browser, than desktop app/webapp.