All posts by Morshed Alam
Contact with me
Extract href links from a website content using regular expression
One of my previous post I have discussed about to Grab website content using cURL. In this post I have given a sample code snippet to extract all hyper links from grabbed content using regular expression. By using following class you can grab site content and extract all hyper links: class ScrapWebsite{ var $target_url =…
Grab website content using cURL
A website content can grab easily using cURL by following the steps below: Enable cURL Copy following codes in to PHP file Change target URL Run the page from webserver $target_url = “http://www.morshed-alam.com”;$options = array( CURLOPT_RETURNTRANSFER => true, CURLOPT_HEADER => false, CURLOPT_FOLLOWLOCATION => true, CURLOPT_ENCODING => “”, CURLOPT_USERAGENT => “spider”, CURLOPT_AUTOREFERER => true, CURLOPT_CONNECTTIMEOUT =>…
Memory overflow issue
I am writing this one to share my experience to you. In the very beginning of my professional career, I have developed an web application for Shylhet Chamber of Commerce using LAMP and delivered it successfully. Almost three months(Couldn’t remind exactly) later we have notified from client that they couldn’t log into the application. Then…