Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Shoutcast Technical Support (http://forums.winamp.com/forumdisplay.php?f=86)
-   -   php include... (http://forums.winamp.com/showthread.php?t=108344)

cyp 4th October 2002 15:18

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?

FesterHead 4th October 2002 18:36

See if this helps...

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

cyp 4th October 2002 20:50

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

FesterHead 4th October 2002 21:11

Probably because the page doesn't really exist.

cyp 4th October 2002 21:20

you can try it...

http://radio-a.dhs.org:8000/7.html

FesterHead 4th October 2002 21:28

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 8th October 2002 20:53

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?


Jay 8th October 2002 21:06

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.

li1997 28th January 2003 05:43

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"


All times are GMT. The time now is 15:00.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.