Web Hosting Talk







View Full Version : Errors With PEAR


Sasuke
03-19-2004, 05:44 PM
Hey.

I'm getting some errors with my code when trying to use the PEAR HTTP_DOWNLOAD package. I've installed that package and the required dependencies and I still get the following error.

Fatal error: Undefined class name 'http_download' in e.t.c e.t.c

My code is as follows..

<?php
$dl = &new HTTP_Download();
$dl->setFile('linux_001.zip');
$dl->setContentDisposition(HTTP_DOWNLOAD_ATTACHMENT, 'linux_001.zip');
$dl->setContentType('application/zip');
$dl->send();
?>

Any ideas?

Joe Bonanno
03-20-2004, 01:32 AM
Just to remind you of the simple things...

Did you remember to "include" the package file in your script?

Did you doublecheck PHP's include path?

Have you tried anyone else's script on the server in question (one that of course uses the package in question)?

Good Luck!

Sasuke
03-20-2004, 07:58 AM
PEAR just seems to be dieing on me in general, even the PEAR default info script won't work. :(

I'll try recompiling Apache, something may have glitched. :)