Archive for June, 2008

The path way paging category – Pager:: Pathing ()

A recent project, the path way with the performance of pages url:http://www.foo.com/index.php/p/user:photohttp://www.foo.com/index.php/p/user:photo/page/1http://www.foo.com/index.php/p/user:photo/page/2Normal pages url:http://www.foo.com/index.php?p=user:photohttp://www.foo.com/index.php?p=user:photo&page=1http://www.foo.com/index.php?p=user:photo&page=2Before the use of paging is the Pear: Pager, at this time on the Wan Buzhuan, no matter how to adjust the parameters page link is always wrong, then wrote a Pathing.php, devoted to the path way paging, call methods :P LAIN TEXTPHP:    1.       [...]

php + ajax file upload progress bar

Find an article PHP AJAX File Upload Progress Meter Updates, on how to use php Pear: HTML_AJAX produced with the progress of the file upload, Below are the upload when I test the diagramajax with the progress of the uploadCode is divided into the following sections:demo.php – dealing with the upload processPLAIN TEXTPHP:    1.       <? php    2.       [...]

Upload files using http_request

Sometimes we had hope that with their feet to the remote automatic automatically added in the form of a file upload, using curl module may be a way, but the direct use of pear http_request may be a more convenient way, the simple example:PLAIN TEXTPHP:    1.       require_once "HTTP / Request.php";    2.           3.       $ req = & new [...]

Php will use rss format into json

    Php should be converted into rss json, the conversion idea is simple:rss -> php array -> jsonWe do not have to carry out such work from scratch, pear has already provided some of the available class libraries, to use the command line below pear install these packagespear install channel: / / pear.php.net/XML_RSS-0.9.9pear install channel: / [...]

Pear:: DB_Table Profile

    What is DB_Table »DB_Table is a visit to the database Table OO interface, it provides a number of automatically create, insert, update and the method of choice. Construction is often automatically mean the loss of some flexibility, DB_Table is no exception.Installationpear procedures for the installation of no concernpear install DB_TableDB_Table flyOfficial recommendation not to introduce [...]

Pear from the command line

Pear PHP is the expansion and application of the ( "PHP Extension and Application Repository") stands for, it is not a Pear attention, even though the pronunciation and the same fruit. Php in installed, a default under the pear will automatically install the part of the process, let us look at such cases on their [...]

No handlers for package.xml version 2.0

Try to install in a host of DB_Table Pearpear install-o DB_TableDownload………………………… such as the Banshang, downloaded after the success of this should be installed, lost by one:     No handlers for package.xml version 2.0This is a very strange thing, php the xml extension with no less, dependent on the package nor the shortage of it, how [...]

Pear:: Pager and the integration of AJAX applicat

    As a PHP developers, probably very people the benefit of a Dongdong Pear is a class library. We know that, Pear:: Pager is dedicated to paging, and the Pear:: HTML_AJAX is Ajax application of some class library. But Pager also is not just only for the html page links, than it has for the Super [...]

Pear package of PHP_Compat

Pear's PHP_Compat is a relatively interesting package, it provided some php4 under php5 can also use the proprietary function, such as file_put_contents, array_combine, str_split ………. so even in php4 the host, In advance can enjoy the convenience of one point php5 function.UsagePLAIN TEXTPHP:    1.       <? php    2.       require_once 'PHP / Compat.php';    3.           4.       / / Load file_put_contents    5.       PHP_Compat:: [...]

Create a local pear

In some host, you may not modify the system's default installation of pear competence, but also want to install their own pear packages. Under such circumstances there are simple ways to achieve:First of all in their own home under a pear create a profile. Pearrc:$ Pear config-create $ HOME. PearrcIf all goes well, the next [...]

Copyright © 2007 - Antivirus—Kaspersky key|kav7.0 key|kis7.0 key|kav8.0 key|kis8.0 key

  • Partner links