PCTechTalkhttp://www.pctechtalk.com/forums/

Go Back   PCTechTalk > PC Tech > Web Related

Reply
 
LinkBack Thread Tools Display Modes
Old 07-21-2004, 11:48 AM   #1 (permalink)
Adz
Registered User
 
Adz's Avatar
 
Join Date: May 2004
Posts: 5
Adz
Xml

Ok, ive started a little radio (dont worry, nothing to do with pctechtalk, or anything, and i dont intend advertising the link anywhere on these forums)

Please could someone help me get the XML stats on a webpage, like http://www.pctechtalk.com/shoutcast/

Thanks in advance,
Adz
Adz is offline   Reply With Quote
Old 07-21-2004, 12:57 PM   #2 (permalink)
Da House Nerd
 
greffov's Avatar
 
Join Date: Dec 1969
Location: One CPU Lane
Posts: 3,512
greffov will become famous soon enough
that works a bit different I think.

As far as I know there is no XML involved out there. If it were, then simply put it in the PHP XML DOM parser to get the data you want. Otherwise parse the info you get by requesting "7" (e.g. http://www.pctechtalk.com:8000/7)
__________________
Linux virusscanner detected a virus:
Windows 95 ... delete [Y/n] y
~
~

:wq
greffov is offline   Reply With Quote
Old 07-22-2004, 03:00 AM   #3 (permalink)
Adz
Registered User
 
Adz's Avatar
 
Join Date: May 2004
Posts: 5
Adz
Quote:
Originally posted by greffov
that works a bit different I think.

As far as I know there is no XML involved out there. If it were, then simply put it in the PHP XML DOM parser to get the data you want. Otherwise parse the info you get by requesting "7" (e.g. http://www.pctechtalk.com:8000/7)
hmm, that just gets the info on a page, how could i transfer that info to another site?
Adz is offline   Reply With Quote
Old 07-23-2004, 04:53 AM   #4 (permalink)
Da House Nerd
 
greffov's Avatar
 
Join Date: Dec 1969
Location: One CPU Lane
Posts: 3,512
greffov will become famous soon enough
You can open the webpage with PHP and split the response on the ',' char. Then you just have to figure out what means what, and put them nicely on your page.

Try something like
PHP Code:
$response file_get_contents("http://your.server.com:8000/7");

$separate explode(","$response);

print 
"<tr><td>".$separate[3]."</td></tr>"
__________________
Linux virusscanner detected a virus:
Windows 95 ... delete [Y/n] y
~
~

:wq
greffov is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -5. The time now is 07:45 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
2001 PCTechTalk