PEAR error
deicist
Manchester, UK
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:
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?
[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?
0
Comments