發表文章

目前顯示的是 5月 18, 2014的文章

Get latest google trends with php

Get latest google trends with php Here we come to the fact that if you want traffic to your website it would be good to create posts about the subjects that people search the most which will lead to more visitors and visitors are money. I needed an automated way to extract google trends on hourly bases and store in my database so I can then use them. Google does not provide API for this so here is a script that scrapes google feed and extracts the keywords. <?php     $url = 'http://www.google.com/trends/hottrends/atom/feed?pn=p1';     $referrer = 'http://www.google.com';     $agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8';     $ch = curl_init();     curl_setopt($ch, CURLOPT_URL, $url);     curl_setopt($ch, CURLOPT_HEADER, 0);     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);     curl_setopt($ch, CURLOPT_HTTPPRO...

Foundation - The most advanced responsive front-end framework

圖片
Foundation The most advanced responsive front-end framework in the world. Download Foundation 5 source from: http://foundation.zurb.com/

File manager for Web

elFinder 2.0 (rc1) jQuery and jQuery UI jQuery 1.6.1 or higher is required. If you use custom jQuery UI build than make sure selectable , draggable , droppable , resizable , dialog and slider are included. <link rel= "stylesheet" type= "text/css" media= "screen" href= "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/themes/smoothness/jquery-ui.css" /> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" ></script> <script type= "text/javascript" src= "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js" ></script> elFinder Include elFinder CSS and JS files. <link rel= "stylesheet" type= "text/css" media= "screen" href= "css/elfinder.min.css" > <script type= "text/javascript" src= "js/elfinder.min.js" ...