[PHP] Re: Help required MySql + PHP

2001-12-06 Thread Kundan Kumar

Hi Karthik,
Most probably the PHP module that you are using with Apache is not compiled
with Mysql support. Can you post the information about php installation that
you have?

Put this in a file called say phpinfo.php:


?php
phpinfo();
?


When you view this page in your browser, you will see lot of useful
information. It will also show the configure options with which PHP was
compiled. In my case, it looks like this


Configure Command
 './configure' '--with-mysql' '--with-pgsql' '--with-apxs'
'--with-gd=/usr/local' '--with-png-dir=/usr/local'
'--with-zlib-dir=/usr/local' '--with-jpeg-dir=/usr/local'
'--with-freetype-dir=/usr/local' '--enable-trans-sid' '--enable-exif'
'--with-xml' '--enable-wddx' '--with-curl=/usr/local'
'--with-pdflib=/usr/local' '--with-t1lib=/usr/local' '--enable-ftp'



Check if you have --with-mysql in the configure options.

Please let us know if you have further problems...

Regards,
Kundan

On 12/6/01 2:08 PM, Karthikeyan [EMAIL PROTECTED] wrote:

 Dear Members,
 I installed RedHat 7.1, Apache, PHP4 and MySQL in a Intel Pentium processor
 system.
 Everything works fine (i.e. MySQL, PHP, etc). But when I want to connect
 MySQL through PHP. It is giving an error 'call to unknown function
 mysql_connect in line in __' .
 Can any one provide a solution.
 Thanks in advance
 yours
 Karthikeyan
 
 
 -
 Before posting, please check:
  http://www.mysql.com/manual.php   (the manual)
  http://lists.mysql.com/   (the list archive)
 
 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
 [EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: Help required MySql + PHP

2001-12-06 Thread CK Raju

On Thursday 06 December 2001 01:08, Karthikeyan wrote:
 Dear Members,
 I installed RedHat 7.1, Apache, PHP4 and MySQL in a Intel Pentium processor
 system.
 Everything works fine (i.e. MySQL, PHP, etc). But when I want to connect

Is phpinfo() working ?
Test on mysql support.

Check on the file extensions.
If you are using .html or .htm, probably you cant unless you make changes in 
the /etc/httpd/conf/httpd.conf file. (use .phtml or .php instead)

CK Raju

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]