Actually my time is a bit limited, I can just give you short overview:
1. For parsing homepages, an okay given by the site owner is helpful.
2. Read a page:
$url = "http://www.bigbrotherbot.com/master/?server=SNT&hl&hr";
$file = file_get_contents($url); // lookup for PHP commands in php.net manual
echo $file; // gives out the complete page
?>
seems like there is a forum bug with the PHP opener "<?php".
3. Easy version for multiple replaces:
$searchfor = array ( );
$searchfor[0] = '/#ffffff/'; // the "/" is necessary
$searchfor[1] = '/something else/'; // other replacements
$replacewith = array ( );
$replacewith[0] = '#000000';
$replacewith[1] = 'something else'; // other replacements
// replace and echo:
$file = preg_replace($seachfor, $replacewith, $file);
echo $file;
google for "regular expressions" to see what is possible too, they are nice things to get information out of a string or to modify any given string. But unfortunatly I'm not experienced with them.
All the code is untested but might work
