All pastes #610255 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-07-09 11:06 UTC
rendered paste body
     function loadhtml($path,$count).
     {.
         .
         //Авторизация на kerio winrouter.
         .
         //autorization("mailrobot","1cmail");.
         .

         $fl = fopen($path,r);.

         if (!$fl).
         {.
            echo ("Не могу получить поток.");.
         }.
         else.
         {.
            $html = fread($fl,1);.
            for($i=1;$i<=$count-1;$i++) .
            {.
                $html = $html.fread($fl,1);.
            }.
            .
.
            file_put_contents('/tmp/2.html',$html);.
            return  $html;.

            //echo $html;.
         }     .
         fclose($fl);.
         return "";.
         .
     }.