Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 7th November 2005, 08:15 PM
8cc Offline
Registered User
 
Join Date: Sep 2005
Posts: 7
Question [ PHP-MySQL ] Fatal error: Call to undefined function

RedHat Enterprise Linux 4

Relevant packages installed:
php-4.3.9-3.8
php-mysql-4.3.9-3.8
MySQL-server-standard-5.0.15-0.rhel4

httpd and mysql daemons are both running.

I have a phpinfo() file that shows up perfectly. Okay then, httpd and php are working.
However, when I pull up a simple script to connect to mysql, I get:
PHP Code:
Fatal errorCall to undefined function: mysql_connect() in /var/www/html/connect.php on line 4 
When I first got this error, I read that you had to install the php-mysql package, so I did that, but the error persists. Any help would be appreciated.

EDIT: Forgot to mention that although php was installed with the distro, it indeed has "--with-mysql=shared,/usr" as seen in phpinfo()...
Maybe the "/usr" is the problem since the mysql data directory is /var/lib/mysql?

Last edited by 8cc; 7th November 2005 at 08:19 PM.
Reply With Quote
  #2  
Old 7th November 2005, 10:23 PM
8cc Offline
Registered User
 
Join Date: Sep 2005
Posts: 7
Found this link: http://www.somacon.com/p109.php

I've done everything there, but still no luck.
Reply With Quote
  #3  
Old 8th November 2005, 05:04 PM
8cc Offline
Registered User
 
Join Date: Sep 2005
Posts: 7
Resolution:

Replaced MySQL 5 with MySQL 4.1
Reply With Quote
Reply

Tags
error, fatal, function, phpmysql, undefined

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fatal error:Call to undefined function mysql_connect tech291083 Servers & Networking 12 8th April 2011 07:00 AM
Error in PHP - to undefined function bcadd CosmeFC Using Fedora 3 24th October 2008 11:02 AM
Call to undefined function: mail() in PHP pembo13 Using Fedora 1 29th July 2004 03:51 PM


Current GMT-time: 04:25 (Sunday, 26-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat