How to install cURL

Install php5-curl:

sudo apt-get install php5-curl

Restart Apache server (example for Ubuntu):

sudo /etc/init.d/apache2 restart/.



Getting PHPUnit running on a Windows machine.

# Get latest version of PEAR 
pear upgrade pear

# Install PHP Unit with PEAR
pear channel-discover
pear channel-discover
pear channel-discover 
#These have to be done only once.

# Now the PEAR Installer can be used to install packages from the PHPUnit channel:
pear install phpunit/PHPUnit

PHP Upload Progress

Enabling Upload Progress for your PHP based site

Configuring your site so that it is displaying file upload progress.

XAMPP users:

PECL uploadprogress library already comes with XAMPP.  To enable this, open your php.ini file and ADD a line in the extensions section (e.g., around line 670).


Subscribe to RSS - PHP