I am new - Having problems displaying something
| From: | Brian Heibert | Date: | Fri, 19 Nov 2004 05:33:08 +0000 |
| Subject: | I am new - Having problems displaying something | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-202485@lists.php.net to get a copy of this message | ||
Hi,
I am new to this list. I am trying to do a php script that will say what
song is currently playing in iTunes/NiceCast Internet Radio broadcaster
Onto my website
Every attempt I have made so far has failed
I got a file called playing.php
With this text inside it:
<?php
echo "Current Song: ".passthru("osascript
/Library/WebServer/Documents/christiantoplist/whattrack.scpt");
?>
And a file called whattrack.scpt (AppleScript file) with this in it
tell application "iTunes"
set trk to current track
set tle to name of trk
set art to artist of trk
set albm to album of trk
return tle & " - " & art & ", " & albm
end tell
But it is not displaying what song is playing on my website
All it says is Current Song: and then it doesn't say the song
Brian Heibert
PS: I have a iMac G4 800mhz OS 10.3.6 running Apple's webserver system
preference which is there version of Apache I think