First off, I know php safe mode is not enabled - but whenever I try to run an applescript using osascript through one of the system php functions, it either returns null, or for system if a return_var is specified it returns "6" for that - my code is as follows, this works with a new install, just curious why it wont work with the preinstalled version
$song=system("osascript -e 'tell application \"iTunes\" to return {name of current track}'",$return);
echo $return;
echo $song;