Vincent's Webspace Logo Banner
Search my website:

Powered by Google
Home Page
My Profile
My Facebook
My Xanga¤é°O
Search Engines
Game
´²¤å¶°
For Sell
Links
Personal
Love
Psychology
Astrology
Living in HK
Books
Health & Care
Computers
Benchmark
Linux
Computer Pricing
RPM / Binaries
RedHat Linux
Debian Linux
Windows Server
Windows
Windows PE
OpenOffice.org
Asterisk
Virtualization
SQL Server
Firewall
PHP
Visual Studio
XOOPS CMS
MySQL Server
Adobe Photoshop
SWiSH
Microsoft Office
Exchange Server
Lotus Notes
Microsoft Project
SharePoint
Request Tracker
PKI
BlackBerry
PocketPC/WM PDA Phone
Palm
Software Development
Toolbox
Website Building
Graphics
Documentations
Visitor Report
ICQ2Go!

PHP

General

Portals / Articles
Portals PHP Articles Non PHP Articles (To be moved somewhere)
Forums
PHP and Unicode
PHP PEAR
  • PHP PEAR Manual
  • Manual installation of PEAR Packages
  • PEAR DB Package
  • define variable: PHP_PEAR_INSTALL_DIR for the command line tool pear to check the pear directory
  • PHP PEAR at PHP's CVS Web
  • install beta package in PEAR
    pear install -beta
  • Install a local copy of PEAR library for shared host enviornment
    1. For PEAR 1.4+
    2. Create a local config file:
      pear config-create [base-path] [/path/pearrc]
    3. Initial install base on the config file, files will put to base-path:
      pear -c /path/pearrc install Archive_Tar PEAR Console_Getopt XML_RPC
    4. Using the local pear from commandline:
      pear -c /path/pearrc [command]
    5. Using the local pear from apache conf:
      php_value include_path ".:/base-path"
    6. Using the local pear from inside php:
      ini_set('include_path', '~/pear/lib' . PATH_SEPARATOR  . ini_get('include_path'));
      
      // From PHP 4.3.0 onward, you can use the following,
      // which especially useful on shared hosts:
      set_include_path('~/pear/lib' . PATH_SEPARATOR . get_include_path());
      
PHP Extensions

PECL Classes

PEAR Classes
  • Tree
  • Pager_Pager (Pagination for database w/o limit function or raw data)
  • DB_Pager (Pagination for database)
  • DB_DataObject (code generation from SQL Database tables)
  • Contact_Vcard_Build (a class to create vCard)
  • HTML_QuickForm (A very complete form class)
    • Example for enable Client Side JavaScript valiation
      Add 'client' to the 5th element of the AddRule function
    • List of QuickForm rules (as of v3.2.2)
      'required' => array('html_quickform_rule_required', 'HTML/QuickForm/Rule/Required.php'),
      'maxlength' => array('html_quickform_rule_range', 'HTML/QuickForm/Rule/Range.php'),
      'minlength' => array('html_quickform_rule_range', 'HTML/QuickForm/Rule/Range.php'),
      'rangelength' => array('html_quickform_rule_range', 'HTML/QuickForm/Rule/Range.php'),
      'email' => array('html_quickform_rule_email', 'HTML/QuickForm/Rule/Email.php'),
      'regex' => array('html_quickform_rule_regex', 'HTML/QuickForm/Rule/Regex.php'),
      'lettersonly' => array('html_quickform_rule_regex', 'HTML/QuickForm/Rule/Regex.php'),
      'alphanumeric' => array('html_quickform_rule_regex', 'HTML/QuickForm/Rule/Regex.php'),
      'numeric' => array('html_quickform_rule_regex', 'HTML/QuickForm/Rule/Regex.php'),
      'nopunctuation' => array('html_quickform_rule_regex', 'HTML/QuickForm/Rule/Regex.php'),
      'nonzero' => array('html_quickform_rule_regex', 'HTML/QuickForm/Rule/Regex.php'),
      'callback' => array('html_quickform_rule_callback', 'HTML/QuickForm/Rule/Callback.php'),
      'compare' => array('html_quickform_rule_compare', 'HTML/QuickForm/Rule/Compare.php')
    • compare rule example
    • Custom rules example (add a compare function in QuickForm 2.x)
      function cmpPass($element, $pass2val)
      {
      global $form;
      $pass1val = $form->getElementValue('passwd1');
      return ($pass1val == $pass2val);
      }
      $form->registerRule('compare', 'function', 'cmpPass');
      $form->addElement('password', 'passwd1', 'Enter password');
      $form->addElement('password', 'passwd2', 'Confirm password');
      $form->addElement('submit', 'submit', 'submit');
      $form->addRule('passwd1', 'Please enter password', 'required');
      $form->addRule('passwd2', 'Please confirm password', 'required');
      $form->addRule('passwd2', 'Passwords are not the same', 'compare', 'function');
    • PEAR HTML_QuickForm Getting Started Guide
    • pookey.co.uk - HTML_QuickForm Tutorial
  • The Log Package
PHP Libraries / 3rd party applications
PHP Applications




This page is last updated at: 2006-08-03 09:54am +0800
Questions to ask me? You can give me a e-mail.

This website is built with TextPad. Viewing under Microsoft Internet Explorer 6.0 Service Pack 1.
Special Thanks to Alex Chan of AnimeNet for hosting my website!

© 2002-2008 Vincent W.S. Tam. All rights reserved.