PEAR error

deicistdeicist Manchester, UK
edited August 2007 in Internet & Media
So, I'm running PHP 5 on IIS, and everything seems to be working fine...except when I try to use a PEAR class. Using this script:


[PHP]<?php

// include class
require ("Net/Ping.php");

// create object
$ping = Net_Ping::factory();

// ping host and display response
if(!PEAR::isError($ping))
{
$response = $ping->ping('127.0.0.1');
print_r($response);
}

?>[/PHP]


gives me the following error:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.

Now, when I was originally installing PHP on this server, I saw that error a lot when using any php and I eventually fixed it...but I can't remember how, and the fix is still 'in', because PHP in general works fine. Anyone got any ideas?

Comments

  • MiracleManSMiracleManS Chambersburg, PA Icrontian
    edited August 2007
    I think when you install PEAR some of your PHP files are overwritten, I could be totally mistaken. IF I were take a guess, I'd say that's the case, I remember getting similar errors before myself.
Sign In or Register to comment.