PHP PEAR File Download Package

On November 5, 2011, in Concentrate, Imagine, Launch, Observe, PEAR, PHP, Tips, Web Application, by Sandeep Verma

Hits: 287   The PEAR package contains: * PEAR installer, for creating, distributing and installing packages * PEAR_Exception PHP5 error handling mechanism * PEAR_ErrorStack advanced error handling mechanism * PEAR_Error error handling mechanism * OS_Guess class for retrieving info about the OS where PHP is running on * System class for quick handling of common operations [...]

SVNLabs Tools

On October 15, 2011, in Amazon Cloud EC2 S3, Concentrate, CURL, Imagine, Launch, Observe, Open Source, PEAR, PHP, Tricks, Web Application, by Sandeep Verma

Hits: 235  HTML2CSV converts html/xhtml to csv/xls. VMG2TXT converts Nokia VMG message file to text file. VCard Parser Extract information from VCard. HTML2RSS converts html/xhtml to rss/xml feed. Amazon S3 upload file to Amazon S3 Bucket. CSV Mapper Import CSV file after adjusting Columns. JavaScript Twitter Bird a2zVideoAPI – search videos with page link Spiderman – [...]

Craigslist Scraper Tool

On October 15, 2011, in Concentrate, CURL, Imagine, LAMP, Launch, Learning, Observe, PEAR, PHP, Tricks, Web Application, Web Services, by Sandeep Verma

Hits: 367  Craigslist Scraper Tool parses and stores the Craigslist Post Location, PostID, Title, Email, Content etc. This tool can export scrapped data into CSV, XML, SQL, RSS, TXT, PDF, JSON, HTML Craigslist.org is a great source of quality, targeted offline clients. It’s organized by geography (by state, by region, by city) and by niche. Certain [...]

Pretty Print JSON

On October 6, 2011, in Concentrate, Imagine, LAMP, Launch, Observe, PEAR, PHP, Tricks, Web Application, Zend, by Sandeep Verma

Hits: 274  We can use function json_print() to explore JSON data, since JSON has no spacing or indentation. The function json_print() make JSON data to display in the human-readable format. <?php function json_print($json) {     $result = ”;     $pos = 0;     $strLen = strlen($json);     $indentStr = ‘ ‘;     $newLine = “\n”;     $prevChar = ”;     $outOfQuotes = true; [...]

Amazon E-Commerce Service or ECS

On December 11, 2010, in Amazon Web Services, CURL, LAMP, Open Source, PEAR, Tricks, Web Services, by Sandeep Verma

Hits: 185  Amazon’s ECS is very good service for accessing Amazon’s product database. We can register to this web service quickly, It provides a free access key to access Amazon Store. Amazon have rich set of web services Web Services are used to access DATA over cross platform environments. Using ECS-driven websites and applications, we can earn [...]

Override PHP Function

On November 23, 2010, in CakePHP, LAMP, Open Source, PEAR, PHP, Tips, Tricks, by Sandeep Verma

Hits: 173  PHP have PECL (PHP Extension & Community Library) function to override built-in functions by replacing them in the symbol table. bool override_function ( string $function_name , string $function_args , string $function_code ) <?php override_function(‘strlen’, ‘$string’, ‘return override_strlen($string);’); function override_strlen($string){ return strlen($string); } ?> The above function “override_function()” require APD i.e. Advanced PHP Debugger. We [...]

a2zVideo API

On April 30, 2010, in CURL, Fedora, LAMP, Linux, Open Source, PEAR, PHP, Tips, Tricks, Web Services, by Sandeep Verma

Hits: 110   Welcome to the a2zVideoAPI wiki! This API supports video links to get video information like Embed Code, Video Thumb, Video Title, Video Description etc. Some supported video sites: http://www.metacafe.com/watch/4230785/ghetto_star_weekly_randy_radermacher/ http://www.5min.com/Video/How-to-Organize-Your-Life-219728873 http://vids.myspace.com/index.cfm?fuseaction=vids.individual&videoid=51722257 http://vodpod.com/watch/2492783-reactos-install-screencast-tutorial http://www.ehow.com/video_4983481_change-ip-address-windows-vista.html http://www.break.com/usercontent/2009/4/How-to-Run-Linux-on-Windows-Ubuntu-699185.html http://www.atom.com/funny_videos/sw_gangsta_rap_chronicles/ http://www.funnyordie.com/videos/4d47a07835/danny-mendlow-the-solution-to-racism-and-the-biggest-issue-in-the-world How to use a2zVideoAPI: 1. Download “api.php” from http://github.com/svnlabs/a2zVideoAPI 2. API require PHP with CURL extension.. Setup [...]

PHP Debug Log – Trace Errors

On April 24, 2010, in Fedora, LAMP, PEAR, PHP, Tips, Tricks, Web Application, by Sandeep Verma

Hits: 304  Hello Friends, I read some where “Quality is not a product.. it is a process ” I think process is hard-work we do and product is final result we get. But how we make our process to get a good product, as a LAMP developer I think track processes “Debug Log” is good sort [...]

Download youtube videos using PEAR

On April 23, 2010, in CURL, Fedora, LAMP, Linux, Open Source, PEAR, PHP, Shared Library, Tips, Tricks, by Sandeep Verma

Hits: 124  PEAR have rich library to access web based resources easily… <?php $sv = new SVTube(); $sv->download(“D7cm-yu-CP0″, “svnlabs.flv”) ?> Class: SVTube.php —————————— <?php require_once ‘HTTP/Client.php’; require_once ‘HTTP/Request.php’; class SVTube { var $req; var $debug = false; var $auth = false; function download ($video_id, $video_filename) { $url = “http://www.youtube.com/watch?v=”.$video_id; $this->req =& new HTTP_Request($url); $response = $this->req->sendRequest(); [...]

Create ZIP archives with PHP script and PEAR class

On April 16, 2010, in CakePHP, Fedora, LAMP, Linux, Open Source, PEAR, PHP, Tips, Tricks, by Sandeep Verma

Hits: 227  We can use PEAR to process zip files in PHP using Archive_Zip…. First set PEAR path in php include path using set_include_path Make Zipped file <?php include (‘Archive/Zip.php’);        // include PEAR ZIP package $obj = new Archive_Zip(‘test.zip’);  // zipped file name $files = array(‘svnlabs/1.gif’, ‘svnlabs/resume.doc’, ‘svnlabs/invoice.xls’);   // files add to zip if ($obj->create($files)) { [...]

PHP – File Upload Stream

On March 17, 2010, in CakePHP, Fedora, LAMP, Linux, PEAR, PHP, Tips, Tricks, Web Application, by Sandeep Verma

Hits: 390  PHP supports upload file stream… we can stream data to server using PHP stream_open() & stream_write() functions. There is alternate method in PEAR to transfer files to server1 to server2. PEAR have HTTP package for uploading files. HTTP_Request supports GET/POST/HEAD/TRACE/PUT/DELETE, Basic authentication, Proxy, Proxy Authentication, SSL, file uploads etc. <?php require_once ”HTTP/Request.php”; $req =& new HTTP_Request(“http://domain.com/upload”); $req->setBasicAuth(“login”, ”pass”); $req->setMethod(HTTP_REQUEST_METHOD_POST); [...]

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...