blog

Awesome things to do with cURL

| posted in: PHP | 658

Summary: cURL, and its PHP extension libcURL, are tools which can be used to simulate a web browser. In fact, it can for example, submit forms. 1 – Update your Facebook status Wanna update your facebook status, but don’t want … Continued

Fetching Facebook, twitter button values in php

| posted in: PHP, Social Networking | 596

Summary: To get Facebook likes, share, comments $source_url = “http://www.flightpodcast.com/episode-6-john-bartels-qantas-qf30”; $url = “http://api.facebook.com/restserver.php?method=links.getStats&urls=”.urlencode($source_url); $xml = file_get_contents($url); $xml = simplexml_load_string($xml); echo “<b>Shares:</b> “.$shares = $xml->link_stat->share_count; echo “<b>Likes:</b> “.$likes = $xml->link_stat->like_count; echo “<b>Comments:</b> “.$comments = $xml->link_stat->comment_count; echo “<b>Total:</b> “.$total = $xml->link_stat->total_count; To … Continued

Making text as hot links

| posted in: PHP | 0

Summary: A lot of times we upload or post description to the site using textareas. If  that text contains any urls then the below code will convert  them as hot links while displaying to the user. This will not only … Continued

PDF Generation

| posted in: PHP | 0

Summary: TCPDF : TCPDF is one of the most  powerful PDF-generator PHP. This makes it easy to install and iterative development quite easy to generate PDF  by your PHP code without any intermediate steps. TCPDF supports different image formats like … Continued