Reputation: 8976
I've installed PEAR using pyrus.phar
in C:\PEAR
for PHP on IIS7. I've also downloaded the PEAR Mail package when I require_once
the file Mail.php
, I get HTTP Error 500.0 - Internal Server Error
.
Here is my code :
<?php
set_include_path('C:/PEAR/php');
require_once 'Mail.php'; //should give me a blank page but is giving me an error
?>
I checked in Mail.php there is a line require_once 'PEAR.php';
Now where do I get this PEAR.php from?
Upvotes: 2
Views: 596
Reputation: 31078
You need to install the old pear installer, too:
$ pyrus install pear/pear
It provides PEAR.php
.
Upvotes: 1