|
Trouble Installing With Php 5.3 August 15, 2011 09:38AM |
Registered: 1 year ago Posts: 2 |
I am using PHP 5.3 with namespaces and am having difficulty installing. I have in my main index page the following:
spl_autoload_extensions(".php");
spl_autoload_register();
require_once 'htmlpurifier/library/HTMLPurifier.auto.php';
$purifier_config=HTMLPurifier_Config::createDefault();
$purifier_config->set('HTML.Allowed', 'p, em, b,a[href],i');
$purifier = new HTMLPurifier($purifier_config);
This gives me the following error:
"Fatal error: Class 'themes\_default\forum\HTMLPurifier_Config' not found"
Is there a way to reference that class?
|
Re: Trouble Installing With Php 5.3 August 15, 2011 10:07PM |
Admin Registered: 6 years ago Posts: 2,640 |
|
Re: Trouble Installing With Php 5.3 August 16, 2011 04:59AM |
Registered: 1 year ago Posts: 2 |
I use the default auto uploader: http://www.php.net/manual/en/function.spl-autoload.php
|
Re: Trouble Installing With Php 5.3 August 16, 2011 08:35AM |
Admin Registered: 6 years ago Posts: 2,640 |