Tuesday, September 28, 2010

How to include files in php from /usr/share/php/ (ubuntu - Hardy Heron)

How to install Pear in ubuntu
sudo apt-get install php-pear

Checking if PEAR works - http://pear.php.net/manual/en/installation.checking.php

save files to - /usr/share/php

access the file in your code using:
require_once 'the_file_stored_in_usr';

No comments:

Post a Comment