Skip to content

Monthly Archives: February 2010

Installing the PEAR package manager and Checking if PEAR works

06-Feb-10

Installing the PEAR package manager and Checking if PEAR works
When using PHP >= 4.3.0, the PEAR Package Manager is already installed unless one has used the ./configure option –without-pear.
Verifying command line tool
Both pear and pecl tools should be available everywhere on command line. For that to work, pear’s binary (bin) directory should be in your [...]

Options for downloading PECL extensions

06-Feb-10

Options for downloading PECL extensions
There are several options for downloading PECL extensions, such as:
The pecl install extname command downloads the extensions code automatically, so in this case there is no need for a separate download.
http://pecl.php.net/ The PECL web site contains information about the different extensions that are offered by the PHP Development Team. The information [...]

upload_max_filesize post_max_size

06-Feb-10

You should set post_max_size to double what you set upload_max_filesize to. This means you can upload 2 files of your maximum limit for each POST and seems like a good middle ground.
The memory_limit directive should also be set above the value of post_max_size so your server can handle the uploads.
There are 2 ways you can [...]

PECL upload progress extension

06-Feb-10

PECL upload progress extension
Download from – http://pecl.php.net/package/uploadprogress
http://pecl.php.net/get/uploadprogress-1.0.1.tgz
Extract the uploadprogress-1.0.1.tgz archive
$ phpize
$ ./configure
$ make
$ sudo make install
Add the extension to php.ini by adding this line extension=uploadprogress.so
Restart apache
/etc/init.d/httpd restart