PHP and the terminal.

Moptop

Registered
How can one run commands in the mac terminal in a PHP script?


Edit: Im using

exec("osascript -e 'tell app \"iTunes\" to next track'",$output);

It works fine (Makes itunes go to the next song) from php studio, but doesn't work from MAMP or Apache.


Edit again: It works in macs built in server, but not mamp.
 
Back
Top