FW: I am new - Having problems displaying something

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am still having trouble all it does is says Current Song: then it is blank
------ Forwarded Message
From: Brian Heibert <bheibert@xxxxxxxxxxx>
Date: Fri, 19 Nov 2004 17:10:48 -0500
To: <php-general@xxxxxxxxxxxxx>
Subject: Re:  I am new - Having problems displaying something

I tried adding a ip addresss:

<EMBED SRC="http://4.10.69.244/christiantoplist/playing.php"; WIDTH="256"
HEIGHT="256" ALIGN="BOTTOM">

The domain I have christiantoplist.org forwards to
http://4.10.69.244/christiantoplist/index.html

But it still doesn't work
It says: Current Song: and then it's blank

Brian

On 11/19/04 1:17 AM, "Warren Vail" <warren@xxxxxxxxxxxx> wrote:

> Looks like the URL you are trying to passthru is missing a domain, No?  ;-)
> 
> Warren Vail
> 
>> -----Original Message-----
>> From: Brian Heibert [mailto:bheibert@xxxxxxxxxxx]
>> Sent: Thursday, November 18, 2004 9:33 PM
>> To: php-general@xxxxxxxxxxxxx
>> Subject:  I am new - Having problems displaying something
>> 
>> 
>> 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
>> 
>> -- 
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>> 
>> 
>> 

------ End of Forwarded Message

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux