2

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?

cweiske
  • 30,033
  • 14
  • 133
  • 194
ShuklaSannidhya
  • 8,572
  • 9
  • 32
  • 45

1 Answers1

1

You need to install the old pear installer, too:

$ pyrus install pear/pear

It provides PEAR.php.

cweiske
  • 30,033
  • 14
  • 133
  • 194