View previous topic :: View next topic |
Author |
Message |
psycophobia Guru
Joined: 08 May 2005 Posts: 510 Location: uk
|
Posted: Sun Feb 19, 2006 6:56 pm Post subject: php output |
|
|
Can you compile and run php in the terminal? |
|
Back to top |
|
|
nmbrthry Tux's lil' helper
Joined: 21 Jun 2005 Posts: 80 Location: Urbana-Champaign, IL
|
Posted: Sun Feb 19, 2006 7:00 pm Post subject: |
|
|
Yes. Make sure you compile php with the cli use flag. If you have PHP4 and PHP5, use php-select to determine which to use for the commandline (as well as apache and cgi). Then use php just like you would python: either call php <your-script> or use the magic #! line at the beginning of your script. |
|
Back to top |
|
|
tomk Bodhisattva
Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
|
Back to top |
|
|
|