[PHP] connecting to MySQL from shellscript

2004-03-11 Thread Ian Firla
Hello all, I have a shellscript written in php that needs to connect to a mysql database. Everything I've been reading suggests that this cannot be done easily. Is this true? The one workaround I've found is: http://www.phpbuilder.com/annotate/message.php3?id=1012940 But it's very inelegant

Re: [PHP] connecting to MySQL from shellscript

2004-03-11 Thread Stuart
Ian Firla wrote: I have a shellscript written in php that needs to connect to a mysql database. Everything I've been reading suggests that this cannot be done easily. Is this true? Not that I know of. I have several cli php scripts that access mysql databases on FreeBSD and Win2k. There must be

Re: [PHP] connecting to MySQL from shellscript

2004-03-11 Thread James E Hicks III
On Thursday 11 March 2004 10:47 am, Ian Firla wrote: I have a shellscript written in php that needs to connect to a mysql database. Everything I've been reading suggests that this cannot be done easily. Is this true? I ain't never heard anything like this before. I do it all the time. Just

Re: [PHP] connecting to MySQL from shellscript

2004-03-11 Thread Adam Voigt
It's trivial, just as if you were compiling for Apache, you just use the --with-mysql flag, and it will just work. On Thu, 2004-03-11 at 10:47, Ian Firla wrote: Hello all, I have a shellscript written in php that needs to connect to a mysql database. Everything I've been reading suggests

Re: [PHP] connecting to MySQL from shellscript

2004-03-11 Thread Ian Firla
Thanks everyone for your advice. The problem appears to be with the debian package which I was using. I tried compiling php from source as Adam suggested and the script now runs flawlessly. Ian On Thu, 2004-03-11 at 16:47, Ian Firla wrote: Hello all, I have a shellscript written in php