- Автор темы
 - #1
 
делаю паука который по дору ходит страницы генерит, но дизайн не отображается подкажите пжалуста как сделать чтоб отображался 
	
	
	
		
		
		
	
	
		
	
	
		
			
		
		
	
				
			
		PHP:
	
	if(isset($_POST['doman']))
{
$time = $_POST['time'];
$pages = $_POST['pages'];
$saits = $_POST['doman'];
foreach ($saits as $sait)
    {
   
    $url = $sait;
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $sait);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    $user_agent = "pauk.php - bot";
    curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
    $str = curl_exec($ch);
    echo "<h1>вывожу - $url</h1>$str";
    curl_close($ch);
        preg_match_all("/href=.*html/", $str, $links);
        $next_url = preg_replace("/href=./", '', $links[0][1]);
        //echo 'http://'.$sait.'/'.$next_url;
        $openurl = "http://$sait/$next_url";
        sleep($time);
        for($i=1;$i<=$pages;$i++)
        {
        $url = $openurl;
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $sait);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        $user_agent = "pauk.php - bot";
        curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
        $str = curl_exec($ch);
        echo "<h1>вывожу - $url</h1>$str";
        curl_close($ch);
        preg_match_all("/href=.*html/", $str, $links);
        $next_url = preg_replace("/href=./", '', $links[0][1]);
        //echo 'http://'.$sait.'/'.$next_url;
        $openurl = "http://$sait/$next_url";
        sleep($time);
        }
    }
}
	
	
				
			


