RSS .92| RSS 2.0| ATOM 0.3
  • Home
  • About Me
  • My Publications
  • My Work Domain
  • phpResource Feeds

    Hello AOL Address Book Grabber Seekers

    October 29th, 2007

    For AOL address book grabber seekers:

    I am getting a lot of requests of “AOL Address Book Grabber” PHP code. For your information – please don’t send me emails. Instead, please fill the following form:

    I am a very busy guy and don’t have time to reply to all emails separately. So I thought I would collect interested emails using this form and then reply to the emails on each Saturday. I understand your need and importance of time, but I am sorry I can’t manage time except Saturday.

    You may ask why I am not putting a download option of the code. I would like to reply I am sorry I have problems.

    Best regards.


    Looking for a Web Application Engineer

    September 9th, 2007

    Do you think you are always capable to develop some cool stuffs? Do you want to change the world by your works? If YES, please send your resume to my email ( ASAP. I am looking for a very competent web application engineer (Full-Time) to work with my overseas team under my supervision.

    You should have a very good background in OOP and must be experienced in PHP & JS (1.5+ years’ real-life experiences).

    Please feel free to contact for more details.


    Some Usage Examples of My XmlToArray Class

    July 4th, 2007

    I am very happy that my XmlToArray Class at PHPClasses.Org got a huge popularity. This class parses XML and forms array from the hierarchical XML format. You can download it from here:

    Recently few users requested me to provide a real-life example usage of my class. In this regard, I want to show two examples here:

    BBC News Feed :

    Cricinfo Latest :

    Screenshot of XmlToArray Usage Example
    I want to share my usage.php that I used for BBC News Feed. Here it is:


    // Retrieving the RSS first. I used file_get_contents(), you can retrieve by any other way
    $xml_data = file_get_contents(“ newsonline_world_edition/front_page/rss.xml”);

    //Creating Instance of the Class
    $xmlObj = new XmlToArray($xml_data);

    //Creating Array
    $arrayData = $xmlObj->createArray();

    $rssData = array();
    //getting the feed items
    $rssData = $arrayData[‘rss’][‘channel’][0][‘item’];

    // data is available; loop through the data

    foreach($rssData as $i=>$v)

    $title = $v[‘title’];
    $link = $v[‘link’];
    $category = $v[‘category’];
    $pubDate = $v[‘pubDate’];
    $desc = $v[‘description’];

    /* print data now


    Isn’t this the simplest script? Yes, I tried to make it as simple as possible. Please feel free to let me know more queries.

    Best regards.


    phpBB Topic Map

    July 1st, 2007

    Few months back, I worked on “phpBB topic map” for one of my good friends. It’s a new kind of site map (in this case I called “topic map”). I just want to show you the new kind mapping stuff. You can see the working version here:

    phpBB Topic Map

    If you mouse over any link, you will see OVERLIB functios here. The forum->topic hierarchy has been derived in conventional way (as per phpBB’s database structure). There is nothing special here except the new idea of mapping phpBB topics with a flavor of OVERLIB.

    Please feel free to contact me for any helps.

    Best regards.


    See My Simple Image Thumbnailer

    June 30th, 2007

    Last week when I noticed the MYRUET members could not upload proper sized image to their profile page, I prepared a simple image thumbnailer. I donno if it helped them a lot but I noticed few members used it. Here is the demo:

    It is very simple one to prepare. It manipulates the would-be scale size using this formula:


    function imageScale($image, $newWidth, $newHeight)

    if(!$size = @getimagesize($image))
    die("Unable to get info on image $image");

    $ratio = ($size[0] / $size[1]);

    if($newWidth == -1)
    $ret[1] = $newHeight;
    $ret[0] = round(($newHeight * $ratio));
    else if($newHeight == -1)
    $ret[0] = $newWidth;
    $ret[1] = round(($newWidth / $ratio));

    die("Scale Error");

    return $ret;


    Please check the thumbnailer and let me know if some changes can make this more strong.

    Best regards.


    Grand Opening of MYRUET Community Website (Beta Version)

    June 24th, 2007

    Today we (Lemon, Arif & Me) released a beta version of MYRUET ( MYRUET is the community website aimed for all ex and current students of Rajshahi University of Engineering & Technology (RUET), Bangladesh. We released this version as a testing version. Upon members’ feedbacks on testing this website, we will change/modify the interface, functionalities & fix bugs. We would like to receive suggestions from the members who joined and tested.

    We were targetting to launch this community website from many months. But everyone was busy with works. Finally we seated together, managed time and after few days’ hard work we got an initial version to release.

    MYRUET is available in four domains:


    [All domains contain same contents.]

    We started thinking about this website one year back and booked the domains later. But it took almost one year to prepare a version. Lemon and Arif did a lot on this website. I enjoyed working with them.

    If you are an ex OR current students of RUET, please join MYRUET and start testing to help us improve the usability & quality of this site.

    Please feel free to send me your suggestions on the current version.

    Best regards.


    Easy Way to Install FFMPEG with PHP

    June 15th, 2007

    Audio/Video streaming is very popular today. Recently I have worked on such streaming for one of my projects. My server OS is Fedora Core 6. I found a great help to install FFMPEG (with PHP) that I want to share:

    I followed it line by line and got FFMPEG done. Obviously you will face some problems (depending on your OS and current status of the server). I had to do a few configuration stuffs that my server required during the installation.

    I hope you will find the above link as a great help when needed.



    Gmail Address Book Grabber :: New Update

    June 14th, 2007

    Please check the updated version of my class “Gmail Address Book Grabber”:

    This update is because Gmail changed few display & URL styles in the recent days. I have modified the data parser and a request URL in this change. It’s working now. See demo here:

    Please feel free to share your experience with my class.

    Enjoy PHPing!


    Tell A Friend (TAF) System With Gmail, Yahoo, MSN, AOL Contact List Grabbers

    November 22nd, 2006

    Recently I prepared a simple Tell A Friend (TAF) System with Gmail, Yahoo, MSN, AOL contact list grabbers. We all know that Tell A Friend (TAF) is a very important part now-a-days for any well-organized/planned website. Also many sites (especially social networking sites) facilitates TAF with contact list importing from major email providers (Gmail, Yahoo, MSN, AOL). From that needs, I tried to implement a simple TAF system with contact list importing facility from major email address providers. Here is my live demo:

    During this work, I got helps from my friends especially Shimul, Ehsan, Arif and Riyadh. My special thanks and gratitude to them. They inspired me a lot to do such work.

    Tell A Friend System with Gmail, Yahoo, MSN, AOL Contact List Grabbers

    Please see my demo and send comments so that I can release a better version of this system. Also feel free to contact me if you want this TAF integrated into your website.

    I am hoping to release a better and stable version of this work in the near future.


    cURL Callback Function

    September 3rd, 2006

    Usually we get cURL response from curl_exec(). But we have options to get the output using callback functions. We can set callback function for both header and body output. Here is an example:

    //Init curl session
    $ch = curl_init();
    //Set URL
    curl_setopt($ch, CURLOPT_URL, ‘’);
    // Set callback function for headers
    curl_setopt($ch, CURLOPT_HEADERFUNCTION, ‘read_header’);
    // Set callback function for body
    curl_setopt($ch, CURLOPT_WRITEFUNCTION, ‘read_body’);
    //Execute curl

    //close curl session

    //Callback function for header
    function read_header($ch, $string)
    $length = strlen($string);
    echo “Header: $string
    return $length;

    //Callback function for body
    function read_body($ch, $string)
    $length = strlen($string);
    echo “Received $length bytes
    return $length;

    This script demonstrates how you can set callback functions to receive the HTTP response as it comes through. It’s really easy to use but nice feature.

    Enjoy PHPing !