|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Newbie: Call to undefined function: mysql_connect()
I'm learning PHP after spending years working with PERL, ColdFusion, and ASP. I wrote some PHP on my PowerBook running Apache, MySQL, and PHP 4.2.3. I moved them over to my Redhat machine and encountered a goofy error:
Fatal error: Call to undefined function: mysql_connect() in /usr/www/html/session-manager/test.php on line 4 So I'm thinking perhaps MySQL isn't enabled in my Redhat install of PHP, so I pull phpinfo(). The following line is under "Configure Command": '--with-mysql=shared,/usr' I assume this means MySQL functions should be enabled. Is there anything else I could be missing here? Thanks in advance and Happy Holidays! -Chris |
|
#2
|
||||
|
||||
|
RE: Newbie: Call to undefined function: mysql_connect()
Well, with that configuration it should makes PHP can connect to mysql using that function. Re-check again if you misstype the function ?
|
|
#3
|
||||
|
||||
|
RE: Newbie: Call to undefined function: mysql_connect()
Well, with that configuration it should makes PHP can connect to mysql using that function. Re-check again if you misstype the function ?
|
|
#4
|
|||||
|
|||||
|
RE: Newbie: Call to undefined function: mysql_connect()
I don't think it was a type-o, as the same exact code was working on my Mac just fine, but I appreciate any and all feedback!
Here is the actual code: php Code:
|
|
#5
|
|||
|
|||
|
RE: Newbie: Call to undefined function: mysql_connect()
found this in the bugzilla section of REDHAT.com:
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=75033 This is for red hat linux 8.0. It may be your problem. |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > Newbie: Call to undefined function: mysql_connect() |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|