본문 바로가기

반응형

RSS

Cross Domain XML using JQuery 크로스도메인에서 jquey 로 xml 사용하기 jquery 로 xml rss 등을 파싱해서 사용하는건 많이 있지만 외부사이트에 xml 이나 rss 사용시 문제가 발생한다. 이 문제에 대해 검색하던 중 좋은 자료가 있어 남겨놓는다. http://www.isgoodstuff.com/2012/07/22/cross-domain-xml-using-jquery/ “How do you parse a cross domain xml, using jquery ajax?” Many would have answered try “jsonp”, which is a json like cross domain solution then, later you tried it and the xml returned is giving you an error of illegal token. .. 더보기
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( .. 더보기
asp 로 rss feed (reader) 구현하기 javascript 로만 구현해 보려 했으나 같은 도메인이 아니면 권한이 문제가 되서 직접 가져올수가 없다 다른곳에서 설명한 방법들도 내용을 보면 proxy 파일을 하나 만들어서 이 문제를 해결하고있다. 결국 서버쪽에서 해결해야 하는 상황이라 찾던중 이런 방법을 찾았다. Here is the output, with content provided by the RSS Feed located at: Ouput Style 1Ouput Style 2Ouput Style 3 출처 http://www.ticketcity.com/our-rss-feeds.html http://www.bustercollings.com/source-code-samples/rss-asp-classic-source-code-example.asp 더보기

반응형