Hello Everyone,

Here goes: I recently started looking into PHP's PEAR project and I set
everything up correctly. The database abstraction package works wonders, I
love it. So I know that PEAR is working. However, when I try to include()
the Config package into my application it gives me Apache's "500 Internal
Server Error". I looked in the error log and this is what it said:

"[Sun Sep 07 03:36:14 2003] [error] [client 127.0.0.1] Premature end of
script headers: c:/php/php.exe"

Has anyone experienced anything like that while using a PEAR package? This
problem seems to be specific only to the Config package, because most of the
other packages that I've tested are fine, including the DB package.

There's also another thing I noticed, too. I wanted to check to see if the
file had been included or not. So I tested if the file_exists(), and it
does. Then I tested it with both the include() and include_once() functions.
The include() one didn't work. The include_once() worked because it didn't
throw an Apache-like error, but as soon as I started to spawn a new object
from that Config Class, it threw the PHP error:

"Fatal error: Cannot instantiate non-existent class: config in
e:\localhost\xenonsol\xenon_0.3.1\Config.php on line 9"

Any help would be greatly appreciated. I thank anyone in advance for helping
me out with this. I love PEAR so far, it's almost like the idea Microsoft
has, but I hope it will be far better than ASP.NET in the near future. In
fact I KNOW it will because it's so public and out-in-the-open. Anyone can
improve on these packages at any time. So, there's my two cents worth...

Thanks,
Nilaab

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to