not tested :) $lines = file( 'http://www.cow.net/cows/' ); print $lines[ rand()%sizeof($lines) ];
/nico "Liam" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 12/03/2002 11:20:18 PM > > Hey all, > I'm looking to write a PHP script that will cut all content out of a page and only > display one line. For example, take this URL: > http://www.cow.net/cows/ > > I want a script that will get this page, but only display the line at the bottom of > the page that says: > "I will never speak to Sara Glover again" > > The real use is to get the current usage from my ISP's online tracking system > and display it on a page without 1) having to log in and 2) displaying my password. > The page is accessible but just sending all paramaters in the URL, so a login > as such isn't nesessary. > > The question is, does anyone know of any classes or PHP programs that I could > use to do this? > > Cheers, > Liam > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php