Old 4th October 2002, 16:18   #1
cyp
Junior Member
 
Join Date: Aug 2002
Posts: 5
php include...

hi,
when i'm trying to include this file (http://radio-a.dhs.org:8000/7.html) i get an error form the php-interpreter.
but im know that this file exist..how can i include this file?
cyp is offline   Reply With Quote
Old 4th October 2002, 19:36   #2
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
See if this helps...

http://www.php.net/manual/en/function.include.php

FesterHead is offline   Reply With Quote
Old 4th October 2002, 21:50   #3
cyp
Junior Member
 
Join Date: Aug 2002
Posts: 5
i know.. i have the file included...
PHP Code:
<?php include("http://radio-a.dhs.org:8000/7.html"); ?>
i know the code is right, an the file exist...
but the interpreter tells me that the file wasn't found
cyp is offline   Reply With Quote
Old 4th October 2002, 22:11   #4
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
Probably because the page doesn't really exist.

FesterHead is offline   Reply With Quote
Old 4th October 2002, 22:20   #5
cyp
Junior Member
 
Join Date: Aug 2002
Posts: 5
you can try it...

http://radio-a.dhs.org:8000/7.html
cyp is offline   Reply With Quote
Old 4th October 2002, 22:28   #6
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
Aye, but it's part of the DNAS executable.

Try to find 7.html on your system...

Since your using php, why don't you use a php xml parsing solution rather than an include?

FesterHead is offline   Reply With Quote
Old 8th October 2002, 21:53   #7
li1997
Member
 
Join Date: Nov 2000
Location: Narragansett, RI, USA
Posts: 78
Send a message via AIM to li1997
such as....

http://www.kription.com/scxml/recent.html


Quote:
Originally posted by festerhead
Aye, but it's part of the DNAS executable.

Try to find 7.html on your system...

Since your using php, why don't you use a php xml parsing solution rather than an include?
li1997 is offline   Reply With Quote
Old 8th October 2002, 22:06   #8
Jay
Moderator Alumni
 
Jay's Avatar
 
Join Date: May 2000
Location: Next Door
Posts: 8,942
if I were you I would use fsockopen instead, be sure to pass the Mozilla name in the User-Agent header to get the correct file.
Jay is offline   Reply With Quote
Old 28th January 2003, 06:43   #9
li1997
Member
 
Join Date: Nov 2000
Location: Narragansett, RI, USA
Posts: 78
Send a message via AIM to li1997
Now available to do just this...
you don't need your password anymore..

http://www.kription.com/scxml/simple.phps

one downside - you will have less data than you would if you were to parse the xml (which requires your password) but it does work and it is great for including on front pages of sites.

-L"k"
li1997 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump