Re: [PHP] fatal error undefined call to mysql_connect

2004-08-26 Thread Angelo Zanetti
Ok I found out that php is installed as an RPM so do activate mysql?

thanks

Angelo Zanetti
Z Logic
[c] +27 72 441 3355
[t] +27 21 464 1363
[f] +27 21 464 1371
www.zlogic.co.za
 John Nichel [EMAIL PROTECTED] 08/25/04 4:44 PM 
Angelo Zanetti wrote:
 so to include the mysql extensions to I have to reinstall PHP or can I
 simply just change the values in the PHP.ini file for the mysql
 entries?
 
 Thanks to those who responded

How did you install php?  RPM (or similiar package), or source?

If you installed from RPM, you can add the php-mysql rpm, and restart 
your web server.  If you installed from source, you'll have to recompile 
php (hopefully you're using apxs).

-- 
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

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



Disclaimer
This e-mail transmission contains confidential information,
which is the property of the sender.
The information in this e-mail or attachments thereto is
intended for the attention and use only of the addressee.
Should you have received this e-mail in error, please delete
and destroy it and any attachments thereto immediately.
Under no circumstances will the Cape Technikon or the sender
of this e-mail be liable to any party for any direct, indirect,
special or other consequential damages for any use of this e-mail.
For the detailed e-mail disclaimer please refer to
http://www.ctech.ac.za/polic or call +27 (0)21 460 3911

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



Re: [PHP] fatal error undefined call to mysql_connect

2004-08-25 Thread John Holmes
From: Angelo Zanetti [EMAIL PROTECTED]
I have installed my php scripts on a new server (linux) and when
attempting to run them I get this error. Is this error a configuration
issue in my PHP.ini file or is it a user issue with mysql and connecting
to the database?
Enable mysql support in PHP. I bet the manual has instructions on things 
like this...

---John Holmes... 

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


Re: [PHP] fatal error undefined call to mysql_connect

2004-08-25 Thread ramil
On Wed, 25 Aug 2004 16:12:53 +0200, Angelo Zanetti [EMAIL PROTECTED] wrote:
 Hi all,
 
 I have installed my php scripts on a new server (linux) and when
 attempting to run them I get this error. Is this error a configuration
 issue in my PHP.ini file or is it a user issue with mysql and connecting
 to the database?
 
 thanks in advance
 Angelo


Your PHP installation probably does not have the MySQL  extension installed.

Please read  http://www.php.net/mysql for more information on how to
enable mysql functions

HTH




ramil

http://ramil.sagum.net

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



Re: [PHP] fatal error undefined call to mysql_connect

2004-08-25 Thread Angelo Zanetti
so to include the mysql extensions to I have to reinstall PHP or can I
simply just change the values in the PHP.ini file for the mysql
entries?

Thanks to those who responded


 ramil [EMAIL PROTECTED] 8/25/2004 4:21:14 PM 
On Wed, 25 Aug 2004 16:12:53 +0200, Angelo Zanetti [EMAIL PROTECTED]
wrote:
 Hi all,
 
 I have installed my php scripts on a new server (linux) and when
 attempting to run them I get this error. Is this error a
configuration
 issue in my PHP.ini file or is it a user issue with mysql and
connecting
 to the database?
 
 thanks in advance
 Angelo


Your PHP installation probably does not have the MySQL  extension
installed.

Please read  http://www.php.net/mysql for more information on how to
enable mysql functions

HTH




ramil

http://ramil.sagum.net 

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


Disclaimer 
This e-mail transmission contains confidential information,
which is the property of the sender.
The information in this e-mail or attachments thereto is 
intended for the attention and use only of the addressee. 
Should you have received this e-mail in error, please delete 
and destroy it and any attachments thereto immediately. 
Under no circumstances will the Cape Technikon or the sender 
of this e-mail be liable to any party for any direct, indirect, 
special or other consequential damages for any use of this e-mail.
For the detailed e-mail disclaimer please refer to 
http://www.ctech.ac.za/polic or call +27 (0)21 460 3911

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



Re: [PHP] fatal error undefined call to mysql_connect

2004-08-25 Thread John Nichel
Angelo Zanetti wrote:
so to include the mysql extensions to I have to reinstall PHP or can I
simply just change the values in the PHP.ini file for the mysql
entries?
Thanks to those who responded
How did you install php?  RPM (or similiar package), or source?
If you installed from RPM, you can add the php-mysql rpm, and restart 
your web server.  If you installed from source, you'll have to recompile 
php (hopefully you're using apxs).

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] fatal error undefined call to mysql_connect

2004-08-25 Thread Angelo Zanetti
I never installed it so... here is my next question. how would I find out how it was 
installed?



 John Nichel [EMAIL PROTECTED] 8/25/2004 4:44:18 PM 
Angelo Zanetti wrote:
 so to include the mysql extensions to I have to reinstall PHP or can I
 simply just change the values in the PHP.ini file for the mysql
 entries?
 
 Thanks to those who responded

How did you install php?  RPM (or similiar package), or source?

If you installed from RPM, you can add the php-mysql rpm, and restart 
your web server.  If you installed from source, you'll have to recompile 
php (hopefully you're using apxs).

-- 
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED] 

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



Disclaimer
This e-mail transmission contains confidential information,
which is the property of the sender.
The information in this e-mail or attachments thereto is
intended for the attention and use only of the addressee.
Should you have received this e-mail in error, please delete
and destroy it and any attachments thereto immediately.
Under no circumstances will the Cape Technikon or the sender
of this e-mail be liable to any party for any direct, indirect,
special or other consequential damages for any use of this e-mail.
For the detailed e-mail disclaimer please refer to
http://www.ctech.ac.za/polic or call +27 (0)21 460 3911

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



Re: [PHP] fatal error undefined call to mysql_connect

2004-08-25 Thread John Nichel
Angelo Zanetti wrote:
I never installed it so... here is my next question. how would I find out how it was installed?
Ask the person who set it up?
If you're on a RPM based system (Red Hat, Fedora, etc), do this at the 
command line...

rpm -qa | grep php
and if PHP is installed as an RPM, it will show up there.
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] fatal error undefined call to mysql_connect

2004-08-25 Thread Ian Firla

On Wed, 2004-08-25 at 17:08, Angelo Zanetti wrote:
 I never installed it so... here is my next question. how would I find out how it was 
 installed?

Look at the output of phpinfo(). But before doing that, read the
documentation or you'll be back here in a flash with more really basic
questions.

A very good source for answers is also php.net. Try typing in some of
your problem terms like mysql into the search query.

Ian

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



Re: [PHP] fatal error undefined call to mysql_connect

2004-08-25 Thread Jason Wong
On Wednesday 25 August 2004 23:09, Ian Firla wrote:
 On Wed, 2004-08-25 at 17:08, Angelo Zanetti wrote:
  I never installed it so... here is my next question. how would I find out
  how it was installed?

 Look at the output of phpinfo(). But before doing that, read the
 documentation or you'll be back here in a flash with more really basic
 questions.

 A very good source for answers is also php.net. Try typing in some of
 your problem terms like mysql into the search query.

And as this this type of question gets asked every other day searching the 
archives for error undefined call to mysql_connect would give all the 
various ways to:

- enable mysql functions in Windows systems
- recompile PHP include support for mysql functions
- install the relevant RPM package for RPM based systems

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
HOST SYSTEM RESPONDING, PROBABLY UP...
*/

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