[horde] Fwd: Re: Weather: No location is set
chuck at horde.org
Sun Jan 15 09:14:00 PST 2006
Please keep threads on the list.
Try forgetting about the the -r and the -q and just do php
----- Forwarded message from grooveman at comcast.net -----
Date: Sun, 15 Jan 2006 12:09:31 -0500
From: Chris <grooveman at comcast.net>
Subject: Re: [horde] Weather: No location is set
To: Chuck Hagenbuch <chuck at horde.org>
Thank you Chuck.
I have tried this (I had to add the -r, since I am using unix sockets):
php -r unix -q buildMetarDB.php -a -t mysql -d horde -u horde -p horde
It gives me:
PHP Parse error: parse error, unexpected $ in Command line code on
I have been looking at the buildMetarDB.php file (I am no php programmer
though!). This is where I found the -r switch. But, I also noticed
that there is a ctrl+M at the end of every line in the file. Since I am
using BSD, I thought that maybe this was the problem. I stripped it out
using vi, and I still get the same error. I copied it to a linux box,
opened it in kwrite and changed the end of line to unix, and it still
gives me the error.
What am I doing wrong?
Chuck Hagenbuch wrote:
> Quoting Chris <grooveman at comcast.net>:
>> I poked around on the list archive, and I saw this:
>> php -q buildMetarDB.php -a -t dbtype -d dbname -u yourusername -p
>> I do not know if this is my answer, but even if it is, I do not have a
>> clue what values are needed for dbtype, dbname and username.
>> Would dbtype=mysql, dbname=horde, yourusername=root?
>> Can someone please tell me if this is what I need, and if it is what
>> values I use?
> Yes, that's what you need. dbtype is mysql if you're using MySQL,
> dbname is horde unless you're using a different database to hold
> Horde's tables, and the username is whatever db user Horde is using
> - you should be able to look at $conf['sql'] in Horde's
> configuration if you don't know what you configured.
----- End forwarded message -----
"So we're talking near-sonic speeds for a vegetable."
Reasons to go to the Punkin Chunkin World Championships
More information about the horde