Page 1 of 1

xampp install didnt include working PEAR

PostPosted: 15. October 2016 20:18
by rdsk
Hi
I started Apache in the xmapp control panel and tried a test.pdph file which showed that PHP works OK.
However, when I ran iweather.php which is provided by server link in on: http://www.galacticstudios.org/kindle-weather-display/
as
http://www.galacticstudios.org/wp-content/uploads/2015/12/WeatherDisplayServer.zip

I got:

Warning: require_once(HTTP/Request2.php): failed to open stream: No such file or directory in C:\xampp\htdocs\iweather.php on line 3

Fatal error: require_once(): Failed opening required 'HTTP/Request2.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\iweather.php on line 3

So I assume that PEAR is not working correctly. Please help!

Rupert

Re: xampp install didnt include working PEAR

PostPosted: 16. October 2016 11:59
by Nobbie

Re: xampp install didnt include working PEAR

PostPosted: 16. October 2016 16:24
by rdsk
thanks. The posts say to use:

pear install http_request2

but not where. I'm newbie!

How do I actually get this recommended script to run? I tried at cmd but failed:

C:\xampp\php>cd pear

C:\xampp\php\pear>pear install http_request2
'pear' is not recognized as an internal or external command,
operable program or batch file.

Re: xampp install didnt include working PEAR

PostPosted: 16. October 2016 17:58
by Altrea
use the XAMPP shell (button in your XAMPP control panel)