Changeset 181 for ez_publish/myutils/trunk/classes/myutilsfunction.php
- Timestamp:
- 06/18/08 20:00:00 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
ez_publish/myutils/trunk/classes/myutilsfunction.php
r180 r181 35 35 * Permet de nettoyer une string avec tidy 36 36 * 37 * @param unknown_type$str37 * @param string $str 38 38 */ 39 39 static function cleanTidy( &$str ) { … … 42 42 { 43 43 $tidy = new tidy; 44 /* Mettre dans un ini */44 /* Mettre dans un ini pour faire plus propre */ 45 45 $config = array( 'show-body-only' => true, 46 46 'output-xhtml' => true, … … 57 57 58 58 /** 59 * Enter description here...59 * Recopie de la fonction eZHTTPTool::getDataByURL mais avec des options cURL en plus... 60 60 * 61 61 * @param unknown_type $url … … 71 71 72 72 /* Ajout d'un timeout sur cURL*/ 73 /* Mettre dans un ini */ 74 curl_setopt( $ch, CURLOPT_TIMEOUT, 15 ); 73 $iniCurl = eZINI::instance( "curl.ini" ); 74 curl_setopt( $ch, CURLOPT_LOW_SPEED_TIME, $iniCurl->variable( 'cURLOption', 'CURLOPT_LOW_SPEED_TIME' ) ); 75 curl_setopt( $ch, CURLOPT_TIMEOUT, $iniCurl->variable( 'cURLOption', 'CURLOPT_TIMEOUT' ) ); 76 77 75 78 if ( $justCheckURL ) 76 79 {
