None found
Your search returned no hits.
Tjeneste-oppgradering: Følg linken for nærmere status vedrørende migrering, for generelle spørsmål og svar se vårt hjelpesenter.
95% of all problems already have a solution in our knowledgebase
Added: 10.03.2014 23:26:29 Last updated: 02.08.2017 10:32:12
You can install any PEAR packages you might need as shown in the guide Installing PEAR packages in cPanel. The PEAR packages path must be added in include_path for you to be able to make use of them in PHP script. In the guide Installing PEAR packages in cPanel you can see a path to the PEAR packages in step 2 point 1. You can add this in two ways:
include_path = '.:/home/ttesting/php:/usr/lib/php:/usr/local/lib/php';
Here, ":/home/ttesting/php" is added to include_path (the rest of include_path is standard for all web hosting accounts). The path to the packages should be added first in include_path after "." and it is important to note that every path in include_path is separated with the character ":".ini_set('include_path', '.:/home/ttesting/php:/usr/lib/php:/usr/local/lib/php');
The difference between the two methods is that all scripts will include the PEAR packages if you use the php.ini file, while it will only be the code that is run after ini_set() which will include the PEAR packages in the last method.
Example:
To use the PEAR package, the Benchmark which was installed in the guide Installing PEAR packages in cPanel you will only need to add the following PHP code in your scripts:
require_once('Benchmark/Timer.php');