PDA

View Full Version : How do I get info from the server to a webpage?


quangphangbang
20th June 2008, 02:37
How do i like request info from my broadcasting station and show it on a webpage? For example if i want to auto show the song name (or anything from the station) that's playing on the server on my website how do i do that?

Nick@ss
20th June 2008, 11:47
use a php script and place the script in an iframe.

http://www.streamsolutions.co.uk/index.php?page=scripts

http://www.w3schools.com/TAGS/tag_iframe.asp

fc*uk
21st June 2008, 01:53
The php file that you edited needs to be uploaded to your website.

But before we get into any of that, does notwork solutions support php? Not all hosts do...

fc*uk
21st June 2008, 03:58
You should be able to ... as long as PHP is somewhat supported.

As nick has suggested, you may need to use the <iframe> ... </iframe> html code to make the php script work. I'm on the incorrect computer right now (not be linux box), but all that should be included in the iframe html code (literally <iframe> HTML CODE </iframe> is the link to the php script (directory path, etc).

On another note, do you have root access to this network solutions server? If you do, you might want to consider lamp (http://en.wikipedia.org/wiki/LAMP_(software_bundle)).

As for the breaking news ... again, you are correct and you have an exceptional memory for not doing these things day in and day out!

I thank you for your graciousness. I have learned the hard way that making assumptions only comes back to kick me. I only wish that other scientists would take the same approach. Again, thank you!

Nick@ss
21st June 2008, 12:25
All the above is correct,

all you need to do is edit the config.php and add the script by means of an iframe onto your site.

scastdetail.php is the file you will link to.

open the php in the iframe and all should be fine alternatively you can just point the website link to the direct php page.

Eg http://www.streamsolutions.co.uk/scripts/scast/scastdetail.php