On Mon, 27 Dec 2004, Chris Gebhardt - VIRTBIZ Internet Services wrote:
> Gerald Waugh wrote:
> > Since upgrading to php-5.0.3 & mySQL 4.1.7 we have problems running a
> > script snipet below, it worked fine before the upgrade.
> >
> > <snipet>
> > $db_server = "localhost";
> > $db_user = "user";
> > $db_pass = "password";
> > $db_name = "db_name";
> >
> > $sql_conn = mysql_connect( $db_server, $db_user, $db_pass ) or die(" Could
> > not connect ");
> >
> > mysql_select_db( $db_name, $sql_conn ) or die (" Could not open database
> > ");
> > </snipet>
> >
>
> We also get similar errors with the PHP 4.3.10 that we installed with
> sites running Invision PowerBoard. What I've turned up on some googling
> is that this is most often encountered when php is not compiled with the
> mysql-connect. Hmmmmm.
The odd thing is the database works fine when used with php through http
and https, just in shell scripts that are run from the command line.
Gerald
--
http://frontstreetnetworks.com | http://raqware.com
Front Street Networks LLC, 229 Front Street, Ste.#C
New Haven, CT 06513-3203 | phone: +1-203-785-0699
_______________________________________________
Cobaltfacts site list
[email protected]
http://list.cobaltfacts.com/mailman/listinfo.cgi/cobaltfacts