From: Martin G. <gim...@gi...> - 2002-08-26 11:04:26
|
Reini Urban <ru...@x-...> writes: > Even Sourcefroge has no uptodate pear/DB Class installation! Hmm... SourceForge seams to be a really good test-environment for PHP scripts ;-) My own PHP Weather does not work as-is there because one cannot access the outside world from PHP using file() due to the strict firewall. > It was my fault. I added the default to try the system pear/DB > version, and when this fails, the local version. Seems that I have > to add more checks (version compare?) and comments to this code. I don't know how you can check for this - it didn't fail, it just never returned once it reached the @require() statement. But if you can get a version number from Pear before the call to @require(), then that would probably be a good idea... > Or stick with our version. I know, we had this discussion before > .... I can imagine :-) > My initial idea was that the pear version might eventually get > updated, whilst the phpwiki version only about twice a year. As long as the copy distributed with PhpWiki works > Thanks for feedback. You're welcome - and thanks for the initial code for a PhpWeather plugin. I've update it so that it works with the latest PHP Weather CVS code: http://www.gimpster.com/phpwiki/index.php/PhpWeather I'll try and see if I can get the drop-down boxes working so that people can select other stations. Do I also just use HTML::select() for this? > BTW: The nightly CVS snapshot is currently very unstable. I saw this when the UserPreference page went from the little one where you could adjust the size on the textarea to the big one with a lot of interesting options... I should probably go back a couple of days? By the way: gimpster.com is running in Safe Mode and this give me these warnings on the UserPreferences page: lib/plugin/UserPreferences.php:63: Warning[2]: SAFE MODE Restriction in effect. The script whose uid is 1332 is not allowed to access /www/gimpster.com/web/phpwiki owned by uid 0 lib/plugin/UserPreferences.php:77: Warning[2]: SAFE MODE Restriction in effect. The script whose uid is 1332 is not allowed to access /www/gimpster.com/web/phpwiki owned by uid 0 -- Martin Geisler My GnuPG Key: 0xF7F6B57B See http://gimpster.com/ and http://phpweather.net/ for: PHP Weather => Shows the current weather on your webpage and PHP Shell => A telnet-connection (almost :-) in a PHP page. |