2014-01-09 31 views
-1

我有一個頁面,我進入了一個file_get_contents,如果我在我的字符串添加一個回聲,我得到我想要的正確的看法。FPDF和HTML2PDF腳本超時問題

現在IM將與所述HTML2PDF腳本的FPDF工具和即時得到一些:

Uncaught ERROR 1 tag HEADER does not yet exist

話,我已經加入這個我html2pdf.class.php文件(BC同樣的錯誤配段標記之後增加頭部)

/** 
    * tag : HEADER 
    * mode : OPEN 
    * 
    * @param array $param 
    * @return boolean 
    */ 
    protected function _tag_open_HEADER($param) 
    { 
     return $this->_tag_open_B($param, 'header'); 
    } 

    /** 
    * tag : SECTION 
    * mode : OPEN 
    * 
    * @param array $param 
    * @return boolean 
    */ 
    protected function _tag_open_SECTION($param) 
    { 
     return $this->_tag_open_B($param, 'section'); 
    } 

    /** 
    * tag : HEADER 
    * mode : CLOSE 
    * 
    * @param array $param 
    * @return boolean 
    */ 
    protected function _tag_close_HEADER($param) 
    { 
     return $this->_tag_close_B($param); 
    } 

    /** 
    * tag : SECTION 
    * mode : CLOSE 
    * 
    * @param array $param 
    * @return boolean 
    */ 
    protected function _tag_close_SECTION($param) 
    { 
     return $this->_tag_close_B($param); 
    } 

第一附加標題打開/關閉標籤後,我便起身關於剖面標籤的錯誤,然後我補充說,在相同的方式,與打開/關閉標籤標頭標記,現在我得到這個錯誤..

Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/domain.dk/public_html/_class/parsingCss.class.php on line 1246

有人知道我在哪裏可以增加時間嗎?

+0

本地主機上你可以在服務器端的php.ini你需要問你的主機。 – Goikiu

回答

0

嘗試使用ini_set('max_execution_time', 300);將300更改爲任何你想要的。

+0

即時通訊新的PHP ..我只是將其添加到我的主文檔或html2pdf.class.php文件的頂部? –

+0

爲了簡單起見,我會將它添加到您的類文件中。否則,你需要在每個文件中調用它。 – Session