"Greg LaBrec" <wv...@wv...> writes:
> Has anyone been able to get caching to work? Are there any tips that
> might help? I am particularly confused by the references to naming
> the configuration file. There are separate references that say it
> should be called one of the following: config.inc, config.php, or
> defaults.inc. Is that where I'm going wrong?
Maybe, but I can understand that you're confused with all those
different filenames. They belong to different versions of PHP Weather.
The errors below talk about phpweather.inc and that tells me that
you're using version 1.6x or something like that, i.e. one of the
versions you can download at SourceForge.
To configure your version, you'll start with the file config-dist.inc.
If you don't have this file, then please download the latest version
(1.61) from SourceForge:
http://sourceforge.net/project/showfiles.php?group_id=23245
Copy the file config-dist.inc to config.inc and then change the
options in config.inc. Delete the lines from config.inc that you don't
change. The idea is that config-dist.inc is distributed with each new
release of PHP Weather whereas your private config.inc isn't. The
config-dist.inc file is read first, and then config.inc is read so
that your changes can override the options in config-dist.inc.
> The only thing I seem to be able to get any results out of is
> changing the flags in the config-dist.inc file.
Yes, that works. But the next time you upgrade config-dist.inc will be
overwritten by the default one - if you copy it to config.inc it will
survive the upgrade.
> Here are the messages I get:
>
> MySQL-----
> Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
> resource in /home/wvfc/wvfc-www/wxphp/phpweather.inc on line 391
You have to create the databases as described in index.php before you
can use a MySQL database.
> DBM database-----
> Fatal error: Call to undefined function: dbmopen() in
> /home/wvfc/wvfc-www/wxphp/phpweather.inc on line 34
Your version of PHP doesn't have support for dbm database.
> XML-----
> XML file does not exist or we couldn't open it for read/write!
Hmm? I'm not sure about that one...
--
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.
|