Jump to content


Photo

PEAR example don't work on Unix server


  • Please log in to reply
No replies to this topic

#1 AlPHP

AlPHP
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 06 May 2006 - 09:14 AM

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:


// 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");
}


The code works before these lines.

Where is the problem? How to resolve it?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users