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:
http://www.rupom.com/aol/post-your-email.php
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.
—
Rupom
1 Comment |
General, PHP, Sharing Experiences |
Permalink
Posted by MA Razzaque Rupom
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 (rupom_315@yahoo.com) 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.
—
Rupom
No Comments » |
General, Opportunities, PHP, PHP Bangladesh, Sharing Experiences |
Permalink
Posted by MA Razzaque Rupom
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:
http://www.phpclasses.org/browse/package/2938.html
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 : http://www.rupom.com/demos/bbc/
Cricinfo Latest : http://www.rupom.com/demos/cricinfo/

I want to share my usage.php that I used for BBC News Feed. Here it is:
————————-
require(“XmlToArray.class.php”);
// Retrieving the RSS first. I used file_get_contents(), you can retrieve by any other way
$xml_data = file_get_contents(“http://newsrss.bbc.co.uk/rss/ 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.
Rupom
No Comments » |
General, PHP, PHPClasses, phpResource, Sharing Experiences |
Permalink
Posted by MA Razzaque Rupom
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:
http://forums.dlsoftware.net/sitemap/

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.
$Rupom
No Comments » |
General, JavaScript, PHP, phpResource, Sharing Experiences |
Permalink
Posted by MA Razzaque Rupom
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:
http://www.rupom.com/myruet/
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));
}
else
{
die("Scale Error");
}
return $ret;
}
—————————————————
Please check the thumbnailer and let me know if some changes can make this more strong.
Best regards.
Rupom
No Comments » |
MYRUET, PHP, phpResource, Sharing Experiences |
Permalink
Posted by MA Razzaque Rupom
June 24th, 2007
Today we (Lemon, Arif & Me) released a beta version of MYRUET (http://www.myruet.com). 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:
– www.myruet.com
– www.myruet.net
– www.myruet.org
– www.myruet.info
[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.
Rupom
1 Comment |
General, MYRUET, RUET, My Campus, Sharing Experiences |
Permalink
Posted by MA Razzaque Rupom
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:
http://vexxhost.com/blog/category/ffmpeg/
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.
Regards.
$Rupom
No Comments » |
General, PHP, phpResource, Sharing Experiences |
Permalink
Posted by MA Razzaque Rupom
June 14th, 2007
Please check the updated version of my class “Gmail Address Book Grabber”:
http://www.phpclasses.org/browse/package/3170.html
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:
http://rupom.osclicks.com/demos/grab_gmail/
Please feel free to share your experience with my class.
Enjoy PHPing!
$Rupom
No Comments » |
PHP, phpResource, Sharing Experiences |
Permalink
Posted by MA Razzaque Rupom
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:
http://www.rupom.com/demos/grabbers/
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.

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.
$Rupom
7 Comments |
General, phpResource, Sharing Experiences |
Permalink
Posted by MA Razzaque Rupom
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, ‘http://www.php.net/’);
// 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
curl_exec($ch);
//close curl session
curl_close($ch);
//Callback function for header
function read_header($ch, $string)
{
$length = strlen($string);
echo “Header: $string
\n”;
return $length;
}
//Callback function for body
function read_body($ch, $string)
{
$length = strlen($string);
echo “Received $length bytes
\n”;
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 !
$rupom
1 Comment |
General, phpResource, Sharing Experiences |
Permalink
Posted by MA Razzaque Rupom