Thanks for your help Peter! have decided to go for a recompile with support for mysql. My qube is fully up to date but it seems that there was no mysql support when first compiled (little odd but hey). If it doesn't work after this I think I'll go for the Quake 3 Server option. databases are good for business but games are more fun :-)
thanks -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Peter Lorent Sent: 02 November 2001 11:00 To: [EMAIL PROTECTED] Subject: RE: [cobalt-developers] php with mysql support (qube3) OK. Since both PHP and MySQL are up and running, your configuration files seem to be in order. When executing a script then, it should return a error message. If not, the connection could be in silent mode. Try connecting to mysql with mysql_connect($hostname, $user, $password); if you are using variables or mysql_connect('localhost', 'root', 'password'); if you are using textstrings. The same goes for the connection to the database: mysql_select_db($database); or mysql_select_db('databasename'); If this doesn't work you would want to know if php was compiled or installed by means of a .pkg provided by Cobalt. When compiled the reason for your problem may well be that php was compiled without mysql support. Compiling with support for mysql is done with the following flagsyntaxis: --with-mysql[=DIR] where DIR is only necessary if it's not the standard directory /usr/local Other steps to take: is the box up to date - check http://emea.cobalt.com/support/download/qube3.eng.html? What are your current versions of MySQL and PHP - check http://pkg.nl.cobalt.com/packages/ for updates if applicable. Hope this can help you. Peter -----Oorspronkelijk bericht----- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Namens Mike Jaffrey Verzonden: vrijdag 2 november 2001 10:32 Aan: [EMAIL PROTECTED] Onderwerp: RE: [cobalt-developers] php with mysql support (qube3) yes in the "dynamic extensions" section extension=mysql.so is uncommented but still no joy -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Peter Lorent Sent: 01 November 2001 19:14 To: [EMAIL PROTECTED] Subject: RE: [cobalt-developers] php with mysql support (qube3) Did you uncomment the line extension=mysql.so in the file php.ini (/etc/httpd)? Peter -----Oorspronkelijk bericht----- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Namens Mike Jaffrey Verzonden: donderdag 1 november 2001 15:43 Aan: Cobalt-Developers Onderwerp: [cobalt-developers] php with mysql support (qube3) does any body know how I can compile php with mysql support on a qube3? both are already installed and working but php will not talk to mysql when a script is run. I know there is a work around with a few lines of php at the beginning of each script or you can make a dynamic mysql mod. but I need to have the two compiled together. Do I need to unistall then recompile everything? if so where do I find the pkg's? help :-( ----------------------- All information and statements in the above e-mail are the sole responsibility of the originator, and may not represent the views or beliefs of Welshpool High School. If you feel you have a complaint from this e-mail, please forward it to [EMAIL PROTECTED] _______________________________________________ cobalt-developers mailing list [EMAIL PROTECTED] http://list.cobalt.com/mailman/listinfo/cobalt-developers _______________________________________________ cobalt-developers mailing list [EMAIL PROTECTED] http://list.cobalt.com/mailman/listinfo/cobalt-developers ----------------------- All information and statements in the above e-mail are the sole responsibility of the originator, and may not represent the views or beliefs of Welshpool High School. If you feel you have a complaint from this e-mail, please forward it to [EMAIL PROTECTED] _______________________________________________ cobalt-developers mailing list [EMAIL PROTECTED] http://list.cobalt.com/mailman/listinfo/cobalt-developers _______________________________________________ cobalt-developers mailing list [EMAIL PROTECTED] http://list.cobalt.com/mailman/listinfo/cobalt-developers ----------------------- All information and statements in the above e-mail are the sole responsibility of the originator, and may not represent the views or beliefs of Welshpool High School. If you feel you have a complaint from this e-mail, please forward it to [EMAIL PROTECTED] _______________________________________________ cobalt-developers mailing list [EMAIL PROTECTED] http://list.cobalt.com/mailman/listinfo/cobalt-developers
