[ phpweather-Bugs-701449 ] defaults.php has no effect
Brought to you by:
iridium
From: SourceForge.net <no...@so...> - 2003-08-16 07:29:11
|
Bugs item #701449, was opened at 2003-03-11 11:40 Message generated for change (Comment added) made by stereo You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377952&aid=701449&group_id=23245 Category: Installation Group: phpweather-2.x Status: Open Priority: 4 Submitted By: Loic RIOUAL (rioual) Assigned to: Nobody/Anonymous (nobody) Summary: defaults.php has no effect Initial Comment: Hi, I just discovered php weather, this is great ! And I am really admirative using this tool, it is such well developped ! I am using the latest version 2.1.1 downloaded today. Anyway, when creating my defaults.php via your interface, and puting it in the root dir, this has no effect, my page doesn't take this in consideration. I just made a test to see if the include was done but that's it. Voila ! Merci. Loïc ---------------------------------------------------------------------- Comment By: Guillaume (stereo) Date: 2003-08-16 09:29 Message: Logged In: YES user_id=277619 I have the same problem here.. stereo@Hertz:~/public_html/phpweather-2.1.2/ > ls -l defaults.php -rw-r--r-- 1 stereo stereo 176 Aug 16 09:16 defaults.php The file doesn't even seem to be read by base_object.php. I added echo "foo"; to defaults.php and didn't find anything in the output. PHPWEATHER_BASE_DIR seems to be correct (/home/stereo/ public_html/phpweather-2.1.2). base.object.php sees the file; I added another echo foo; after "if(file_exists(PHPWEATHER_BASE_DIR . '/defaults.php')) {" and it is printed twice. This is my defaults.php: <?php /* This is a local configuration file for PHP Weather. /* icao */ $this->properties['icao']='ELLX'; /* pref_units */ $this->properties['pref_units']='only_metric'; ?> ---------------------------------------------------------------------- Comment By: Martin Geisler (gimpster) Date: 2003-04-20 15:07 Message: Logged In: YES user_id=104098 Hmm, it works here. Have you uploaded defaults.php to the same directory as PHP Weather? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=377952&aid=701449&group_id=23245 |