<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/1.5.1.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
	<title>Rupom Here</title>
	<link>http://rupom.osclicks.com</link>
	<description>For Sharing Experiences With You</description>
	<pubDate>Sun, 28 Oct 2007 19:35:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.1.2</generator>
	<language>en</language>

		<item>
		<title>Hello AOL Address Book Grabber Seekers</title>
		<link>http://rupom.osclicks.com/2007/10/29/hello-aol-address-book-grabber-seekers/</link>
		<comments>http://rupom.osclicks.com/2007/10/29/hello-aol-address-book-grabber-seekers/#comments</comments>
		<pubDate>Sun, 28 Oct 2007 19:33:09 +0000</pubDate>
		<dc:creator>MA Razzaque Rupom</dc:creator>
		
	<category>General</category>
	<category>Sharing Experiences</category>
	<category>PHP</category>
		<guid>http://rupom.osclicks.com/2007/10/29/hello-aol-address-book-grabber-seekers/</guid>
		<description><![CDATA[	For AOL address book grabber seekers:
	I am getting a lot of requests of &#8220;AOL Address Book Grabber&#8221; PHP code. For your information - please don&#8217;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&#8217;t have time to reply to all emails separately. So I thought I would collect [...]]]></description>
			<content:encoded><![CDATA[	<p>For AOL address book grabber seekers:</p>
	<p>I am getting a lot of requests of &#8220;AOL Address Book Grabber&#8221; PHP code. For your information - please don&#8217;t send me emails. Instead, please fill the following form:</p>
	<p><a href="http://www.rupom.com/aol/post-your-email.php" title="Post your email to have AOL code" target="_blank">http://www.rupom.com/aol/post-your-email.php</a></p>
	<p>I am a very busy guy and don&#8217;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&#8217;t manage time except Saturday.</p>
	<p>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.</p>
	<p>Best regards.</p>
	<p>&#8211;</p>
	<p>Rupom
</p>
]]></content:encoded>
			<wfw:commentRSS>http://rupom.osclicks.com/2007/10/29/hello-aol-address-book-grabber-seekers/feed/</wfw:commentRSS>
	</item>
		<item>
		<title>Looking for a Web Application Engineer</title>
		<link>http://rupom.osclicks.com/2007/09/09/looking-for-a-web-application-engineer/</link>
		<comments>http://rupom.osclicks.com/2007/09/09/looking-for-a-web-application-engineer/#comments</comments>
		<pubDate>Sat, 08 Sep 2007 19:27:31 +0000</pubDate>
		<dc:creator>MA Razzaque Rupom</dc:creator>
		
	<category>General</category>
	<category>Sharing Experiences</category>
	<category>PHP</category>
	<category>Opportunities</category>
	<category>PHP Bangladesh</category>
		<guid>http://rupom.osclicks.com/2007/09/09/looking-for-a-web-application-engineer/</guid>
		<description><![CDATA[	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 [...]]]></description>
			<content:encoded><![CDATA[	<p>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.</p>
	<p>You should have a very good background in OOP and must be experienced in PHP &amp; JS (1.5+ years&#8217; real-life experiences).</p>
	<p>Please feel free to contact for more details.</p>
	<p>&#8211;</p>
	<p>Rupom
</p>
]]></content:encoded>
			<wfw:commentRSS>http://rupom.osclicks.com/2007/09/09/looking-for-a-web-application-engineer/feed/</wfw:commentRSS>
	</item>
		<item>
		<title>Some Usage Examples of My XmlToArray Class</title>
		<link>http://rupom.osclicks.com/2007/07/04/some-usage-examples-of-my-xmltoarray-class/</link>
		<comments>http://rupom.osclicks.com/2007/07/04/some-usage-examples-of-my-xmltoarray-class/#comments</comments>
		<pubDate>Wed, 04 Jul 2007 16:27:38 +0000</pubDate>
		<dc:creator>MA Razzaque Rupom</dc:creator>
		
	<category>General</category>
	<category>Sharing Experiences</category>
	<category>phpResource</category>
	<category>PHP</category>
	<category>PHPClasses</category>
		<guid>http://rupom.osclicks.com/2007/07/04/some-usage-examples-of-my-xmltoarray-class/</guid>
		<description><![CDATA[	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 [...]]]></description>
			<content:encoded><![CDATA[	<p>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:</p>
	<p><a href="http://www.phpclasses.org/browse/package/2938.html" title="XmlToArray Class by MA Razzaque Rupom" target="_blank">http://www.phpclasses.org/browse/package/2938.html</a></p>
	<p>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:</p>
	<p>BBC News Feed : <a href="http://www.rupom.com/demos/bbc/" title="Usage Example of XmlToArray Class" target="_blank">http://www.rupom.com/demos/bbc/</a></p>
	<p>Cricinfo Latest : <a href="http://www.rupom.com/demos/cricinfo/" title="Usage Example of XmlToArray Class">http://www.rupom.com/demos/cricinfo/</a></p>
	<p><img src="http://www.rupom.com/demos/images/cricinfo2.jpg" alt="Screenshot of XmlToArray Usage Example" /><br />
I want to share my <strong>usage.php</strong> that I used for BBC News Feed. Here it is:</p>
	<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
	<p>require(&#8221;XmlToArray.class.php&#8221;);<br />
// Retrieving the RSS first. I used file_get_contents(), you can retrieve by any other way<br />
$xml_data = file_get_contents(&#8221;http://newsrss.bbc.co.uk/rss/ newsonline_world_edition/front_page/rss.xml&#8221;);</p>
	<p>//Creating Instance of the Class<br />
$xmlObj    = new XmlToArray($xml_data);</p>
	<p>//Creating Array<br />
$arrayData = $xmlObj-&gt;createArray();</p>
	<p>$rssData = array();<br />
//getting the feed items<br />
$rssData = $arrayData[&#8217;rss&#8217;][&#8217;channel&#8217;][0][&#8217;item&#8217;];</p>
	<p>// data is available; loop through the data</p>
	<p>foreach($rssData as $i=&gt;$v)<br />
{</p>
	<p>$title   = $v[&#8217;title&#8217;];<br />
$link    = $v[&#8217;link&#8217;];<br />
$category = $v[&#8217;category&#8217;];<br />
$pubDate = $v[&#8217;pubDate&#8217;];<br />
$desc    = $v[&#8217;description&#8217;];</p>
	<p>/* print data now<br />
&#8230;.<br />
&#8230;..<br />
&#8230;..<br />
*/<br />
}</p>
	<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
	<p>Isn&#8217;t this the simplest script? Yes, I tried to make it as simple as possible. Please feel free to let me know more queries.</p>
	<p>Best regards.</p>
	<p>Rupom
</p>
]]></content:encoded>
			<wfw:commentRSS>http://rupom.osclicks.com/2007/07/04/some-usage-examples-of-my-xmltoarray-class/feed/</wfw:commentRSS>
	</item>
		<item>
		<title>phpBB Topic Map</title>
		<link>http://rupom.osclicks.com/2007/07/01/phpbb-topic-map/</link>
		<comments>http://rupom.osclicks.com/2007/07/01/phpbb-topic-map/#comments</comments>
		<pubDate>Sat, 30 Jun 2007 23:03:26 +0000</pubDate>
		<dc:creator>MA Razzaque Rupom</dc:creator>
		
	<category>General</category>
	<category>Sharing Experiences</category>
	<category>phpResource</category>
	<category>JavaScript</category>
	<category>PHP</category>
		<guid>http://rupom.osclicks.com/2007/07/01/phpbb-topic-map/</guid>
		<description><![CDATA[	Few months back, I worked on &#8220;phpBB topic map&#8221; for one of my good friends. It&#8217;s a new kind of site map (in this case I called &#8220;topic map&#8221;). 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 [...]]]></description>
			<content:encoded><![CDATA[	<p>Few months back, I worked on &#8220;phpBB topic map&#8221; for one of my good friends. It&#8217;s a new kind of site map (in this case I called &#8220;topic map&#8221;). I just want to show you the new kind mapping stuff. You can see the working version here:</p>
	<p><a href="http://forums.dlsoftware.net/sitemap/" title="phpBB Topic Mapping" target="_blank">http://forums.dlsoftware.net/sitemap/</a></p>
	<p><img src="http://www.rupom.com/demos/images/phpBB_topic_map.jpg" alt="phpBB Topic Map" align="middle" border="0" height="441" width="500" /></p>
	<p>If you mouse over any link, you will see OVERLIB functios here. The forum-&gt;topic hierarchy has been derived in conventional way (as per phpBB&#8217;s database structure). There is nothing special here except the new idea of mapping phpBB topics with a flavor of OVERLIB.</p>
	<p>Please feel free to contact me for any helps.</p>
	<p>Best regards.</p>
	<p>$Rupom
</p>
]]></content:encoded>
			<wfw:commentRSS>http://rupom.osclicks.com/2007/07/01/phpbb-topic-map/feed/</wfw:commentRSS>
	</item>
		<item>
		<title>See My Simple Image Thumbnailer</title>
		<link>http://rupom.osclicks.com/2007/06/30/see-my-simple-image-thumbnailer/</link>
		<comments>http://rupom.osclicks.com/2007/06/30/see-my-simple-image-thumbnailer/#comments</comments>
		<pubDate>Fri, 29 Jun 2007 23:15:13 +0000</pubDate>
		<dc:creator>MA Razzaque Rupom</dc:creator>
		
	<category>Sharing Experiences</category>
	<category>phpResource</category>
	<category>PHP</category>
	<category>MYRUET</category>
		<guid>http://rupom.osclicks.com/2007/06/30/see-my-simple-image-thumbnailer/</guid>
		<description><![CDATA[	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 [...]]]></description>
			<content:encoded><![CDATA[	<p>Last week when I noticed the <a href="http://www.myruet.com">MYRUET</a> 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:</p>
	<p><a href="http://www.rupom.com/myruet/" target="_blank">http://www.rupom.com/myruet/</a></p>
	<p>It is very simple one to prepare. It manipulates the would-be scale size using this formula:</p>
	<p>
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
</p>
	<p><code></p>
	<p>function imageScale($image, $newWidth, $newHeight)<br />
{</p>
	<p>    if(!$size = @getimagesize($image))<br />
    {<br />
        die("Unable to get info on image $image");<br />
    }</p>
	<p>    $ratio = ($size[0] / $size[1]);</p>
	<p>    if($newWidth == -1)<br />
    {<br />
        $ret[1] = $newHeight;<br />
        $ret[0] = round(($newHeight * $ratio));<br />
    }<br />
    else if($newHeight == -1)<br />
    {<br />
        $ret[0] = $newWidth;<br />
        $ret[1] = round(($newWidth / $ratio));</p>
	<p>    }<br />
    else<br />
    {<br />
        die("Scale Error");<br />
    }</p>
	<p>    return $ret;<br />
}<br />
</code></p>
	<p>
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
<br />
Please check the thumbnailer and let me know if some changes can make this more strong.</p>
	<p>Best regards.</p>
	<p>Rupom
</p>
]]></content:encoded>
			<wfw:commentRSS>http://rupom.osclicks.com/2007/06/30/see-my-simple-image-thumbnailer/feed/</wfw:commentRSS>
	</item>
		<item>
		<title>Grand Opening of MYRUET Community Website (Beta Version)</title>
		<link>http://rupom.osclicks.com/2007/06/24/grand-opening-of-myruet-community-website-beta-version/</link>
		<comments>http://rupom.osclicks.com/2007/06/24/grand-opening-of-myruet-community-website-beta-version/#comments</comments>
		<pubDate>Sat, 23 Jun 2007 20:26:31 +0000</pubDate>
		<dc:creator>MA Razzaque Rupom</dc:creator>
		
	<category>General</category>
	<category>Sharing Experiences</category>
	<category>RUET, My Campus</category>
	<category>MYRUET</category>
		<guid>http://rupom.osclicks.com/2007/06/24/grand-opening-of-myruet-community-website-beta-version/</guid>
		<description><![CDATA[	Today we (Lemon, Arif &#38; 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 &#38; Technology (RUET), Bangladesh. We released this version as a testing version. Upon members&#8217; feedbacks on testing this website, we will change/modify the interface, functionalities [...]]]></description>
			<content:encoded><![CDATA[	<p>Today we (Lemon, Arif &amp; Me) released a beta version of MYRUET (<a href="http://www.myruet.com" title="The RUET Community">http://www.myruet.com</a>). MYRUET is the community website aimed for all ex and current students of Rajshahi University of Engineering &amp; Technology (RUET), Bangladesh. We released this version as a testing version. Upon members&#8217; feedbacks on testing this website, we will change/modify the interface, functionalities &amp; fix bugs. We would like to receive suggestions from the members who joined and tested.</p>
	<p><img src="http://rupom.osclicks.com/images/myruet_beta_2.jpg" border="0" /></p>
	<p>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&#8217; hard work we got an initial version to release.</p>
	<p>MYRUET is available in four domains:</p>
	<p>- www.myruet.com<br />
- www.myruet.net<br />
- www.myruet.org<br />
- www.myruet.info</p>
	<p>[All domains contain same contents.]</p>
	<p>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.</p>
	<p>If you are an ex OR current students of RUET, please join <a href="http://www.myruet.com" title="Website for RUET People" target="_blank">MYRUET</a> and  start testing to help us improve the usability &amp; quality of this site.</p>
	<p>Please feel free to send me your suggestions on the current version.</p>
	<p>Best regards.</p>
	<p>Rupom
</p>
]]></content:encoded>
			<wfw:commentRSS>http://rupom.osclicks.com/2007/06/24/grand-opening-of-myruet-community-website-beta-version/feed/</wfw:commentRSS>
	</item>
		<item>
		<title>Easy Way to Install FFMPEG with PHP</title>
		<link>http://rupom.osclicks.com/2007/06/15/easy-way-to-install-ffmpeg-with-php/</link>
		<comments>http://rupom.osclicks.com/2007/06/15/easy-way-to-install-ffmpeg-with-php/#comments</comments>
		<pubDate>Fri, 15 Jun 2007 10:32:13 +0000</pubDate>
		<dc:creator>MA Razzaque Rupom</dc:creator>
		
	<category>General</category>
	<category>Sharing Experiences</category>
	<category>phpResource</category>
	<category>PHP</category>
		<guid>http://rupom.osclicks.com/2007/06/15/easy-way-to-install-ffmpeg-with-php/</guid>
		<description><![CDATA[	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 [...]]]></description>
			<content:encoded><![CDATA[	<p>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:</p>
	<p><a href="http://vexxhost.com/blog/category/ffmpeg/" title="FFMPEG PHP" target="_blank">http://vexxhost.com/blog/category/ffmpeg/</a></p>
	<p>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.</p>
	<p>I hope you will find the above link as a great help when needed.</p>
	<p>Regards.</p>
	<p>$Rupom
</p>
]]></content:encoded>
			<wfw:commentRSS>http://rupom.osclicks.com/2007/06/15/easy-way-to-install-ffmpeg-with-php/feed/</wfw:commentRSS>
	</item>
		<item>
		<title>Gmail Address Book Grabber :: New Update</title>
		<link>http://rupom.osclicks.com/2007/06/14/gmail-address-book-grabber-new-update/</link>
		<comments>http://rupom.osclicks.com/2007/06/14/gmail-address-book-grabber-new-update/#comments</comments>
		<pubDate>Thu, 14 Jun 2007 10:52:26 +0000</pubDate>
		<dc:creator>MA Razzaque Rupom</dc:creator>
		
	<category>Sharing Experiences</category>
	<category>phpResource</category>
	<category>PHP</category>
		<guid>http://rupom.osclicks.com/2007/06/14/gmail-address-book-grabber-new-update/</guid>
		<description><![CDATA[	Please check the updated version of my class &#8220;Gmail Address Book Grabber&#8221;:
	http://www.phpclasses.org/browse/package/3170.html
	This update is because Gmail changed few display &#038; URL styles in the recent days. I have modified the data parser and a request URL in this change. It&#8217;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

]]></description>
			<content:encoded><![CDATA[	<p>Please check the updated version of my class &#8220;Gmail Address Book Grabber&#8221;:</p>
	<p><a href="http://www.phpclasses.org/browse/package/3170.html">http://www.phpclasses.org/browse/package/3170.html</a></p>
	<p>This update is because Gmail changed few display &#038; URL styles in the recent days. I have modified the data parser and a request URL in this change. It&#8217;s working now. See demo here:</p>
	<p><a href="http://rupom.osclicks.com/demos/grab_gmail/">http://rupom.osclicks.com/demos/grab_gmail/</a></p>
	<p>Please feel free to share your experience with my class.</p>
	<p>Enjoy PHPing!</p>
	<p>$Rupom
</p>
]]></content:encoded>
			<wfw:commentRSS>http://rupom.osclicks.com/2007/06/14/gmail-address-book-grabber-new-update/feed/</wfw:commentRSS>
	</item>
		<item>
		<title>Tell A Friend (TAF) System With Gmail, Yahoo, MSN, AOL Contact List Grabbers</title>
		<link>http://rupom.osclicks.com/2006/11/22/tell-a-friend-taf-system-with-gmail-yahoo-msn-aol-contact-list-grabbers/</link>
		<comments>http://rupom.osclicks.com/2006/11/22/tell-a-friend-taf-system-with-gmail-yahoo-msn-aol-contact-list-grabbers/#comments</comments>
		<pubDate>Wed, 22 Nov 2006 17:25:31 +0000</pubDate>
		<dc:creator>MA Razzaque Rupom</dc:creator>
		
	<category>General</category>
	<category>Sharing Experiences</category>
	<category>phpResource</category>
		<guid>http://rupom.osclicks.com/2006/11/22/tell-a-friend-taf-system-with-gmail-yahoo-msn-aol-contact-list-grabbers/</guid>
		<description><![CDATA[	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, [...]]]></description>
			<content:encoded><![CDATA[	<p>Recently I prepared a simple <strong>Tell A Friend (TAF) System</strong> 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:</p>
	<p><a href="http://www.rupom.com/demos/grabbers/">http://www.rupom.com/demos/grabbers/</a></p>
	<p>During this work, I got helps from my friends especially <a href="http://www.shimul.info">Shimul</a>, <a href="http://ehsan.bdwebwork.com">Ehsan</a>, <a href="http://www.e-arif.info">Arif</a> and Riyadh. My special thanks and gratitude to them. They inspired me a lot to do such work. </p>
	<p><a rel="lightbox" href="http://rupom.osclicks.com/wp-content/themes/contempt/lightbox/images/taf_screenshot.jpg" title="Tell A Friend System with Gmail, Yahoo, MSN, AOL Contact List Grabbers"><img src="http://rupom.osclicks.com/demos/grabbers/thumb_taf_screenshot.jpg" alt="Tell A Friend System with Gmail, Yahoo, MSN, AOL Contact List Grabbers" /></a></p>
	<p>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.</p>
	<p>I am hoping to release a better and stable version of this work in the near future.</p>
	<p>$Rupom
</p>
]]></content:encoded>
			<wfw:commentRSS>http://rupom.osclicks.com/2006/11/22/tell-a-friend-taf-system-with-gmail-yahoo-msn-aol-contact-list-grabbers/feed/</wfw:commentRSS>
	</item>
		<item>
		<title>cURL Callback Function</title>
		<link>http://rupom.osclicks.com/2006/09/03/curl-callback-function/</link>
		<comments>http://rupom.osclicks.com/2006/09/03/curl-callback-function/#comments</comments>
		<pubDate>Sun, 03 Sep 2006 15:30:24 +0000</pubDate>
		<dc:creator>MA Razzaque Rupom</dc:creator>
		
	<category>General</category>
	<category>Sharing Experiences</category>
	<category>phpResource</category>
		<guid>http://rupom.osclicks.com/2006/09/03/curl-callback-function/</guid>
		<description><![CDATA[	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, &#8216;http://www.php.net/&#8217;);
// Set callback function for headers
curl_setopt($ch, CURLOPT_HEADERFUNCTION, &#8216;read_header&#8217;);
// Set callback function for body
curl_setopt($ch, CURLOPT_WRITEFUNCTION, &#8216;read_body&#8217;);
//Execute curl
curl_exec($ch);
	//close [...]]]></description>
			<content:encoded><![CDATA[	<p>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:</p>
	<p>//Init curl session<br />
$ch = curl_init();<br />
//Set URL<br />
curl_setopt($ch, CURLOPT_URL, &#8216;http://www.php.net/&#8217;);<br />
// Set callback function for headers<br />
curl_setopt($ch, CURLOPT_HEADERFUNCTION, &#8216;read_header&#8217;);<br />
// Set callback function for body<br />
curl_setopt($ch, CURLOPT_WRITEFUNCTION, &#8216;read_body&#8217;);<br />
//Execute curl<br />
curl_exec($ch);</p>
	<p>//close curl session<br />
curl_close($ch);</p>
	<p>//Callback function for header<br />
function read_header($ch, $string)<br />
{<br />
    $length = strlen($string);<br />
    echo &#8220;Header: $string<br />\n&#8221;;<br />
    return $length;<br />
}</p>
	<p>//Callback function for body<br />
function read_body($ch, $string)<br />
{<br />
    $length = strlen($string);<br />
    echo &#8220;Received $length bytes<br />\n&#8221;;<br />
    return $length;<br />
}</p>
	<p>This script demonstrates how you can set callback functions to receive the HTTP response as it comes through. It&#8217;s really easy to use but nice feature.</p>
	<p>Enjoy PHPing !</p>
	<p>$rupom</p>
]]></content:encoded>
			<wfw:commentRSS>http://rupom.osclicks.com/2006/09/03/curl-callback-function/feed/</wfw:commentRSS>
	</item>
	</channel>
</rss>
