[PHP-DB] Fatal error: Call to undefined function: mysql_connect()

2004-04-16 Thread Tim
Setup:
2 servers, one with PHP 4.1.2 and no MySQL installed, the other has MySQL
and PHP 4.1.2

Problem:
I am attempting to connect to the MySQL server from the server without
MySQL, but I get the error that shows in the subject.

Fatal error: Call to undefined function: mysql_connect() in
/folder/index.php on line 11

I was told that maybe the extension for MySQL was not setup in PHP.  I
thought that maybe it was just because MySQL wasnt installed on the system I
am working on, but it makes sense that I am not trying to access a database
on the system I am working from, but trying to access one on a different
server all together.

What do you think?

Thanks,
Tim

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] Fatal error: Call to undefined function: mysql_connect() ......

2002-10-14 Thread Vyas, Bhavin

I get the following error:
Fatal error: Call to undefined function: mysql_connect() 

on php 4.1.2.

It *has* been compiled with-mysql...here is a snippet from phpinfo()

'--with-kerberos=/usr/kerberos' '--with-ldap=shared'
'--with-mysql=shared,/usr' 


Any ideas why I am getting the error?

Thanks,
Bhavin Vyas.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] Fatal error: Call to undefined function: mysql_connect() ......

2002-10-14 Thread Jeffrey_N_Dyke


does the mysql section show up in phpinfo() ?  is [shared] allowed in that
configure argument?


|-|
| Jeff | KeaneIT - Presidents Landing |
| | Suite: 200|
|   Outside: 617 -517-1772 | E-mail:  |
| [EMAIL PROTECTED]|
|   [ Mailing: 10 Presidents Landing  |
|   Medford, MA 02155 USA ]   |
|-|





   
   
  Vyas, Bhavin   
   
  Bhavin.Vyas@247ReaTo:   '[EMAIL PROTECTED]' 
[EMAIL PROTECTED]
  lMedia.comcc:   
   
 Subject:  [PHP-DB] Fatal error: Call 
to undefined function: mysql_connect() ..   
  10/14/2002 10:57 AM  
   
   
   
   
   




I get the following error:
Fatal error: Call to undefined function: mysql_connect()

on php 4.1.2.

It *has* been compiled with-mysql...here is a snippet from phpinfo()

'--with-kerberos=/usr/kerberos' '--with-ldap=shared'
'--with-mysql=shared,/usr'


Any ideas why I am getting the error?

Thanks,
Bhavin Vyas.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] Fatal error: Call to undefined function: mysql_connect() ......

2002-10-14 Thread Vyas, Bhavin

The only other place it shows up is in the dbx section
DBX
dbx support enabled
dbx version 1.0.0
supported databases MySQLbr /ODBCbr /PostgreSQLbr /Microsoft SQL
Serverbr /FrontBase

There isn't a 'mysql' section.
I am not sure if [shared] is allowed, it should be considering that the
version is 4.1.2 and this install was default RH7.3.
Is there a way to check and make sure?

Thanks,
Bhavin.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 14, 2002 11:04 AM
To: Vyas, Bhavin
Cc: '[EMAIL PROTECTED]'
Subject: Re: [PHP-DB] Fatal error: Call to undefined function:
mysql_connect() ..



does the mysql section show up in phpinfo() ?  is [shared] allowed in that
configure argument?


|-|
| Jeff | KeaneIT - Presidents Landing |
| | Suite: 200|
|   Outside: 617 -517-1772 | E-mail:  |
| [EMAIL PROTECTED]|
|   [ Mailing: 10 Presidents Landing  |
|   Medford, MA 02155 USA ]   |
|-|





 

  Vyas, Bhavin

  Bhavin.Vyas@247ReaTo:
'[EMAIL PROTECTED]' [EMAIL PROTECTED]

  lMedia.comcc:

 Subject:  [PHP-DB] Fatal
error: Call to undefined function: mysql_connect() ..   
  10/14/2002 10:57 AM

 

 





I get the following error:
Fatal error: Call to undefined function: mysql_connect()

on php 4.1.2.

It *has* been compiled with-mysql...here is a snippet from phpinfo()

'--with-kerberos=/usr/kerberos' '--with-ldap=shared'
'--with-mysql=shared,/usr'


Any ideas why I am getting the error?

Thanks,
Bhavin Vyas.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] Fatal error: Call to undefined function: mysql_connect() ......

2002-10-14 Thread Vyas, Bhavin

I am using mysq. I tried to re-install using rpm, but didn't work. Will
need to recompile. However, now, I am getting Mysql not loaded. My feeling
is that there must be a simple way to load this module, just don't know how
:-(
If anyone does, please let me know, else I will recompile.

Thanks for all your help!!!

Bhavin.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 14, 2002 11:46 AM
To: Vyas, Bhavin
Cc: '[EMAIL PROTECTED]'
Subject: RE: [PHP-DB] Fatal error: Call to undefined function:
mysql_conne ct() ..



what are you passing for module(the first argument for dbx_connect)  it
should be DBX_MYSQL, or  mysql, if that fails, recompile without the shared
argument, and i bet that would work



 

Vyas, Bhavin

Bhavin.Vyas@247Real   To:
'[EMAIL PROTECTED]' [EMAIL PROTECTED], Vyas,
Media.com  Bhavin
[EMAIL PROTECTED]
   cc:
'[EMAIL PROTECTED]' [EMAIL PROTECTED]
10/14/2002 11:43 AMSubject: RE: [PHP-DB]
Fatal error: Call to undefined function: 
mysql_conne  ct() ..

 





Thanks for the info. Now, I am getting the following error:

Warning: dbx: module '1' not loaded or not supported.

If any one has any ideas

Thanks,
Bhavin.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 14, 2002 11:29 AM
To: Vyas, Bhavin
Cc: '[EMAIL PROTECTED]'
Subject: RE: [PHP-DB] Fatal error: Call to undefined function:
mysql_conne ct() ..



I think this is how it works.if you're using dbx then you need to
connect using dbx_connect and not mysql_connect
and i don't think that [shared] is a valid argument.

I only connect to mysql and M$Sql  so i have configured to connect to those
specifiacally.

I would reconfigure using -with-mysql=/path/to/mysql

but, i am on Solaris8, so you may want to get other advice from someone
running RH

hth
jd





 Vyas, Bhavin

 Bhavin.Vyas@247Real   To:
'[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Media.com cc:
'[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: RE: [PHP-DB]
Fatal error: Call to undefined function:
 10/14/2002 11:14 AM mysql_conne ct() ..









The only other place it shows up is in the dbx section
   DBX
dbx support enabled
dbx version 1.0.0
supported databases MySQLbr /ODBCbr /PostgreSQLbr /Microsoft SQL
Serverbr /FrontBase

There isn't a 'mysql' section.
I am not sure if [shared] is allowed, it should be considering that the
version is 4.1.2 and this install was default RH7.3.
Is there a way to check and make sure?

Thanks,
Bhavin.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 14, 2002 11:04 AM
To: Vyas, Bhavin
Cc: '[EMAIL PROTECTED]'
Subject: Re: [PHP-DB] Fatal error: Call to undefined function:
mysql_connect() ..



does the mysql section show up in phpinfo() ?  is [shared] allowed in that
configure argument?


|-|
| Jeff | KeaneIT - Presidents Landing |
| | Suite: 200|
|   Outside: 617 -517-1772 | E-mail:  |
| [EMAIL PROTECTED]|
|   [ Mailing: 10 Presidents Landing  |
|   Medford, MA 02155 USA ]   |
|-|







Vyas, Bhavin

Bhavin.Vyas@247ReaTo:
'[EMAIL PROTECTED]' [EMAIL PROTECTED]

lMedia.comcc:

   Subject:  [PHP-DB] Fatal
error: Call to undefined function: mysql_connect() ..
10/14/2002 10:57 AM









I get the following error:
Fatal error: Call to undefined function: mysql_connect()

on php 4.1.2.

It *has* been compiled with-mysql...here is a snippet from phpinfo()

'--with-kerberos=/usr/kerberos' '--with-ldap=shared'
'--with-mysql=shared,/usr'


Any ideas why I am getting the error?

Thanks,
Bhavin Vyas.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php