Jump to content

PEAR example don't work on Unix server


AlPHP

Recommended Posts

I'm trying to run Service_weather package on my server. This package contants example "weather.com-extensive.php". It works on my home Windows PC.

I've installed PEAR and all packages I need on my server. When I try to run weather.com-extensive.php, I don't get any error message. There is just empty page in my browser.

I think code stops working here:


[code]
// Object initialization - error checking is important, because of
// handling exceptions such as missing PEAR modules
$weatherDotCom = &Services_Weather::service("WeatherDotCom", array("httpTimeout" => 30));
if (Services_Weather::isError($weatherDotCom)) {
    die("Error: ".$weatherDotCom->getMessage()."\n");
}[/code]


The code works before these lines.

Where is the problem? How to resolve it?
Link to comment
https://forums.phpfreaks.com/topic/9177-pear-example-dont-work-on-unix-server/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.