Installation
Information for installing this PECL extension may be found in the manual chapter titled Installation of PECL extensions. Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here: » http://pecl.php.net/package/cairo.
A DLL for this PECL extension is currently unavailable. See also the building on Windows section.
Notes specific to installation on Windows
Binary builds of the extension can be found at » http://cairographics.org/download/. Download the correct zip file, place php_cairo.dll in the extensions directory, and enable it via the php.ini file in use. Please be sure the PHP minor version (5.2, 5.3) match, the thread safety (Thread Safe TS or Non-Thread Safe NTS), the architecture (x86 or x64), and the compiler version (VC6 or VC9) match or the extension will not load.
Коментарии
Ubuntu php and cairo:
install cairo library
sudo apt-get install libcairo2-dev
install php-pear
sudo apt-get install php-pear
download the cairo tgz from cairographics.org
wget http://pecl.php.net/get/cairo
pecl the tgz
sudo pecl install Cairo-0.3.1.tgz (which ever is the version you downloaded)
for testing scripts via the command-line, modify /etc/php5/cli/php.ini
add the line: extension=cairo.so
for testing cairo via apache, modify /etc/php5/apache2/php.ini
add the line: extension=cairo.so
and restart apache: sudo service apache2 restart
I hope this helps! Let's post to this part of the php documentation!