Re: phpweater.php issues
Brought to you by:
iridium
From: Martin G. <gim...@gi...> - 2003-05-03 11:27:24
|
"norman van wijnen" <n.v...@ho...> writes: > Hi , Hi Norman. I've send a copy of this reply to the PhpWeather mailinglist at php...@li.... I suggest that you join the list so that we can troble-shoot your problem there. The list is SPAM protected, so you have to join before sending mails to it. You can join there: https://lists.sourceforge.net/lists/listinfo/phpweather-devel > at first I wanna thank you for that great software you made. > > It's only that I have a problem with it. > > I'am running the software on a Sun Solaris server OS version 9 and > everything seems to works fine after install. Great, it's nice to know that things also work there! > After making a defaults.php file the software has to be in dutch but > nothing happens. > > So I think that in a way the defaults.php file could not read from > the install directory. Hmm, if I remember correctly, then this is the second report about this... very strange. > reading in your log files I found a way (i thought) to code the path > to the install directory by edit the phpweather.php file. > > I put this line in it: > > define('PHPWEATHER_BASE_DIR', > gcwd() . '/u01/documents/wheater/phpweather-2.1.2'); > > and I removed the original line. Could you try and see what dirname(__FILE__) return when put into a PHP script in the PhpWeather installation program. It is supposed to return the path to the installation directory of PhpWeather. If it doesn't return the right path, then try with realpath(dirname(__FILE__)). The realpath() function resolves symbolic links and '/../' constructs. In short, just make a file with <?php echo dirname(__FILE__) . "\n"; echo realpath(dirname(__FILE__)) . "\n"; ?> and then mail us the result as seen in the source in your browser. > It returns the following error: > > Fatal error: Call to undefined function: gcwd() in > /u01/documents/wheater/phpweather-2.1.2/phpweather.php on line 12 There's no gcwd() function in PHP as far as I know, and PhpWeather doesn't define one, so it's only natural that PHP complains. What should the gcwd() function do? > Can you tell me if there is a way to let the software get use of the > defaults.php file? It's supposed to be really easy (copy defaults-dist.php to defaults.php and change what you want) but something strange is giving us trouble... > Regards > > Norman > (the netherlands) -- 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. Join Freenet: http://gimpster.com/downloads/freenet/ |