[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-general
Subject:    Re: [PHP] need some guidance
From:       68.100.218.76
Date:       2003-01-31 16:58:09
[Download RAW message or body]

Yeah, I was thinking more of the HTML way.  With the help you two and some
google searching I see that it will be difficult to pull out specific areas
of a site.

For example ---
The news headlines from yahoo.com

I've got a code that grabs that now.  I just need to tweak it a bit to get
the data to look presentable.

<?php

//Define the variables
$url = "";
$start = '';
$end = '';

//Opens the file and pulls out the requested info
$openfile = fopen($url, "r");
$file = fread($openfile, 50000);
$data = eregi("$start(.*)$end", $file, $siteinfo);

//Make it look pretty
$siteinfo[1] = strip_tags($siteinfo[1], "<img>");

fclose($openfile);
echo "$siteinfo[1]";

?>



"Justin French" <justin@indent.com.au> wrote in message
news:BA6080D9.1E618%justin@indent.com.au...
> On a major level, create or use a large CMS (content management system),
and
> use the information you have in the databases / file system to establish
> what's new, modified, etc.
>
> On a smaller level, you could check which files have been updated in X
days
> (I think) with PHP, and display them as a list, which some selective
> listing.
>
> On a pain-in-the-ass level, you could maintain a HTML page with links on
it
> to things you've recently updated, and maintain it manually.
>
>
> If you're talking about *another site* (not yours), it would be even
harder.
>
>
> Justin
>
>
> on 31/01/03 4:28 PM, Seth Hopkins (shopkins006@cox.net) wrote:
>
> > Hey everyone.  I'm wondering if someone could lead me in the right
direction
> > on this one.  What could I use to see if a site has been updated and
then
> > display what has been added to it?
> >
> > Any advice is appreciated.
> > Thanks.
> >
> > Seth
> >
> >
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic