Php Fatal Error Call To Undefined Function Mysql_connect Ubuntu Php5
Source: http://www.php.net//manual/en/function.mysql-connect.php share|improve this answer answered Jun 16 '14 at 21:37 Parto 6,620164080 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using so then you do: Code: sudo aptitude install php5-mysql never ever(#1) "download" stuff when working in Linux; use the package manager of the distro you are using! #1: there are some Join them; it only takes a minute: Sign up PHP/Apache: PHP Fatal error: Call to undefined function mysql_connect() up vote 19 down vote favorite 2 I have MySQL (5.5.23 Community Server), Topics: Active | Unanswered Index »Networking, Server, and Protection »[SOLVED]Call to undefined function mysql_connect() Pages: 1 #1 2012-11-06 02:24:52 xworld Member Registered: 2012-05-27 Posts: 153 [SOLVED]Call to undefined function mysql_connect() Hi. http://iipseconline.com/call-to/php-fatal-error-call-to-undefined-function-mysql-connect-php5.html
enjoys eating up stuff. How can I wrap text into two columns? Not the answer you're looking for? And if I don't have the file (mysql.so), where can I download it? http://stackoverflow.com/questions/13825108/undefined-function-mysql-connect
Call To Undefined Function Mysql_connect() In Php
it should be mysqli.so –Marc B Jun 18 '14 at 16:29 3 sudo apt-get install php5-mysql --- will install it and after you need add extension=mysqli.so in /etc/php5/apache2/php.ini –Tasos Jun Please check your PHP configuration. Not sure if it matters but I have made the switch to a systemd only installation and have What is the main spoken language in Kiev: Ukrainian or Russian? Call To Undefined Function Mysql_connect() Php 7 Run the code again and include any error messages here. –Parto Jun 16 '14 at 21:02 I get the following error after placing that code.
Offline #3 2012-11-06 19:53:30 xworld Member Registered: 2012-05-27 Posts: 153 Re: [SOLVED]Call to undefined function mysql_connect() Here's phpinfo():Linux net 3.6.6-1-ARCH #1 SMP PREEMPT Mon Nov 5 11:57:22 CET 2012 x86_64 Build Call To Undefined Function Mysql_connect() Xampp But I didn't find an answer there yet. Thesis reviewer requests update to literature review to incorporate last four years of research. his explanation Are there any historically significant examples?
Not the answer you're looking for? Call To Undefined Function Mysql_connect() Codeigniter I will look into it but I would really like to get this working first as it worked previously until I moved to a new server. –user1765369 Dec 11 '12 at I posted the part that I thought was relevantI do have extension_dir="/usr/lib/php/modules:; Directory in which the loadable extensions (modules) reside. ; http://php.net/extension-dir extension_dir = "/usr/lib/php/modules/" ; On windows: ; extension_dir = This is the code for it:"; ?>Originally it displayed everything fine but once I made the switch it displayed this error:
Call To Undefined Function Mysql_connect() Xampp
Grayscale not working in simple TikZ What kind of weapons could squirrels use? http://askubuntu.com/questions/484256/ubuntu-server-14-mysql-php-connect-problem How much interest did Sauron have in Erebor? Call To Undefined Function Mysql_connect() In Php Story about crystal flowers that stop time? Call To Undefined Function Mysql_connect() Windows Hot Network Questions Was Sigmund Freud "deathly afraid" of the number 62? "Surprising" examples of Markov chains Output the Hebrew alphabet When did the coloured shoulder pauldrons on stormtroopers first appear?
Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the sort command : -g versus -n flag Absolute value of polynomial When did the coloured shoulder pauldrons on stormtroopers first appear? Does that work? –wanovak Dec 11 '12 at 17:16 I've tried restarting the server, still happens. –user1765369 Dec 11 '12 at 17:21 I'm using xampp, after adding http://iipseconline.com/call-to/php-fatal-error-call-to-undefined-function-mysql-connect-in-ubuntu.html This means that php5-mysql was looking for php5-common (=5.3.6-13ubuntu3.1) but I had php5-common (=5.3.6-13ubuntu3.9) installed.
Now it works fine. Call To Undefined Function Mysql_connect() Centos I had the same error message. Offline #5 2012-11-06 23:11:34 xworld Member Registered: 2012-05-27 Posts: 153 Re: [SOLVED]Call to undefined function mysql_connect() Relentlessly...I will check phpinfo() more.
Browse other questions tagged php mysql linux or ask your own question.
Once I removed that, I no longer received the "fatal error" messages. mysql_* functions are dangerous and deprecated as of PHP 4.1. asked 2 years ago viewed 2637 times active 2 years ago Linked 149 How do you restart Apache? Php 7 Mysql_connect sudo apt-get install php5-mysql It resolved my CodeIgniter 3.0 mysqli connection valid.
Copy/paste this code and see if it works: weblink Should I boost his character level to match the rest of the group?
Was the Boeing 747 designed to be supersonic? etc.); FYI there is only one instance of MySQL and Apache on the server. –Cheddar Mar 11 '13 at 20:56 Anyone shed any light? –Cheddar Mar 12 '13 at I configured Apache to read my .php pages from /home/user/code/php instead of /srv/http. I reinstalled the other packages which got removed when I removed php5-common with the following command sudo apt-get install php5-cli sudo apt-get install php5 libapache2-mod-php5 sudo apt-get install php5-mysql and restarted
I have also made sure thatextension=mysqli.so extension=mysql.soAre both uncommented in /etc/php/php.ini Last edited by xworld (2012-11-08 00:48:14) Offline #2 2012-11-06 13:45:51 yaffare Member Registered: 2011-12-29 Posts: 71 Re: [SOLVED]Call to undefined There are no such functions any more and you can't use them. But I still get this. How to explain the existence of just one religion?