парсим главную страницу..
<?php
echo "ProfiWM parser by (VITAMIN)";
echo "<hr>";
$url_vitamin = "http://profiwm.ru/index.php";
$url_vitamin2 = "profiwm.ru/index.php";
$host_vitamin = "http://profiwm.ru";
if ($_SERVER[REQUEST_URI]) {
$url2 = $_SERVER[REQUEST_URI];
}
$by_vitamin = file_get_contents("$url_vitamin$url_vitamin2");
$srsr = array();
$srsr[0] = '|"|';
$srsr[1] = "|'|";
$srcsiter = preg_replace($srsr,"",$by_vitamin);
$srcsite = preg_replace('|src=/|',"src=$url_vitamin/",$srcsiter);
$hrefsite = preg_replace('|href=/|',"href=$host_vitamin/",$srcsite);
$ur = array();
$ur[0] = "|href=$url_vitamin|";
$siter = preg_replace($ur,"href=$host_vitamin",$hrefsite);
print_r ($siter);
echo "<hr>";
?>