Search the web
Sign In
New User? Sign Up
phpexperts
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Click here for the latest updates on Groups Message search

Messages

  Messages Help
Advanced
PHP website conversion to plain text   Message List  
Reply Message #13275 of 13502 |
Re: PHP website conversion to plain text

<?php
function URLopen($url)
{
$dh = fopen($url,'r');
$result = '';
while(!feof($dh)) {
$result .= fread($dh,8192);
}

return $result;
}

$data=URLopen("http://kmgx.phirefast.com:8300/played.html");

?>

--- In phpexperts@yahoogroups.com, "shorts732" <shorts732@...> wrote:
>
> Working on a project and it needs to pull the data from shoutcast.com.
> I am pulling the song history data and find it writes everything on one single
line.
>
> I an looking for a script to take the source from
http://kmgx.phirefast.com:8300/played.html, and then replace all >< with
str_replace("><", ">\r<", $string); to create hard returns.
>
> How do I get the php to make $string = the source file of
http://kmgx.phirefast.com:8300/played.html?
>





Wed Nov 25, 2009 5:40 am

invarbrass
Offline Offline
Send Email Send Email

Message #13275 of 13502 |
Expand Messages Author Sort by Date

Working on a project and it needs to pull the data from shoutcast.com. I am pulling the song history data and find it writes everything on one single line. I...
shorts732
Offline Send Email
Nov 25, 2009
12:56 am

<?php function URLopen($url) { $dh = fopen($url,'r'); $result = ''; while(!feof($dh)) { $result .= fread($dh,8192); } return $result; } ...
invarbrass
Offline Send Email
Nov 25, 2009
7:01 am

$data = file_get_contents('http://kmgx.phirefast.com:8300/played.html');...
invarbrass
Offline Send Email
Nov 25, 2009
7:02 am

Hello friends, I want to grab an href attribute of first anchor tag from this link http://www.sidereel.com/Heroes/_season/4/_episode/11/_search/_links I am...
Gautam Kumar
gotu_d2006
Offline Send Email
Nov 26, 2009
10:54 am

Hi Gautam, I didn't quite understand how your getDocument function worked, so i declared my own function which retrieves the html file and returns it as a ...
Krishna Shasankar
shasankar
Offline Send Email
Nov 27, 2009
9:29 am
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help