Archive for October 3rd, 2009
Facebook update: All statuses posted since thursday disappeared. Facebook hacked again or unexpected maintenance work?
Posted on 03. Oct, 2009 by Dragos.
One minute ago I have posted a message on my wall, refreshed the page and whoa! the first messages to appear are from Thursday. I am not sure what happened to Facebook (might it be another attack, or just maintenance work), but there’s surely something happening out there. If you are experiencing the same thing, [...]
Continue Reading
PHP: How to download a webpage (aka web scrapping) with PHP
Posted on 03. Oct, 2009 by Dragos.
There are many ways of downloading web pages, or web content. Personally I like to use cURL for my web scrapping needs, but sometimes I also use fsockopen and file_get_contents. Here are 3 different functions that will allow you to download web content. cURL: function getData($url) { if($url!=’localhost’ && $url!=’http://localhost’) { $ch=curl_init(); curl_setopt($ch, CURLOPT_URL, $url); [...]


