PHP, cURL, CURLOPT FOLLOWLOCATION and Open Basedir or Safe Mode
PHP, cURL, CURLOPT FOLLOWLOCATION and Open Basedir or Safe Mode php cURL 을 이용해서 rss feed 를 가져오는경우 $ch = curl_init($url); curl_setopt( $ch, CURLOPT_POST, false ); curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true ); curl_setopt( $ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7" ); curl_setopt( $ch, CURLOPT_HEADER, false ); curl_setopt( ..
더보기