English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

How can I track changes to an external site? and displays the modified content? I am familar with php, *sql, linux/unix.

2006-08-28 15:03:09 · 2 answers · asked by web_dev_newbie 1 in Computers & Internet Programming & Design

Similar to dailyrotation.org ?

2006-08-28 15:04:14 · update #1

2 answers

Hi.

There is a free CMS PHP-based opensource product you can use:

http://rsinger.library.gatech.edu/

Otherwise, like the previous use said, store a local copy of each file. Periodically check each files for changes using the HTTP HEAD command. If there was a change, you can download the changed file under a new name then run a "diff" on the two files.

http://www.holomind.de/phpnet/diff.src.php

Resources for more PHP code can be found at sourceforge.net, php.net, and zend.com.

-Leon S

2006-08-28 15:31:49 · answer #1 · answered by Leon Spencer 4 · 0 0

I've used something like this to make local copies of weather data on web sites. I used it to have a local cache, but it could provide a local version. I would suppose you could call the off site file and compare it to your local one. The function that is most important here is join('',@file($BaseURL)) that reads the off site file into the string $text.

You could also put the text in a database.


$cachefile = 'cache/KGKY.xml';
$BaseURL = "http:// www.weather.gov/ data/ current_obs /KGKY.xml";
$text = join ('', @file($BaseURL));
$fp = fopen($cachefile, 'w');
fwrite($fp, $text);
fclose($fp);

?>

NOTE:I've added spaces in that URI so it would display here at Yahoo! answers.

2006-08-28 22:25:09 · answer #2 · answered by LorettoBoy 4 · 1 0

fedest.com, questions and answers