PHP – File Upload Stream

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

Hits: 921  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); [...]

Magic of PEAR – Date TimeZone

On March 3, 2010, in CakePHP, LAMP, Open Source, Oscommerce, PEAR, PHP, Tips, Tricks, Web Services, by Sandeep Verma

Hits: 1295  PEAR is a framework and distribution system for reusable PHP components. How we get PEAR packages with php files? Add block of code to the php file…. <?php // include PEAR class include (“Date.php”); // initialize Date object $d = new Date(“1981-08-07 01:30:11″); // retrieve date to display echo $d->getDate(); // retrieve date as [...]

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...