title: Why is mysqli_connect() an "undefined function" on my PHP server?
body: <p>I'm using PHP Version 5.3.3 on a Linux server.  When I try to use mysql_connect() or mysqli_connect() to reach the database, I get an error saying:</p>
  
  <p><strong>Fatal error:</strong> Call to undefined function mysql_connect() </p>
  
  <p>or</p>
  
  <p><strong>Fatal error:</strong> Call to undefined function mysqli_connect() </p>
  
  <p>You can see my testing page here: <a href="http://gorp.osg.ufl.edu/BOT3151/testing.php" rel="nofollow">http://gorp.osg.ufl.edu/BOT3151/testing.php</a></p>
  
  <p>You can see the phpinfo page here: <a href="http://gorp.osg.ufl.edu/phptest.php" rel="nofollow">http://gorp.osg.ufl.edu/phptest.php</a></p>
  
  <p>The relevant configure commands are here:</p>
  
  <p><code>'--with-mysql=shared,/usr' 
  '--with-mysqli=shared,/usr/lib64/mysql/mysql_config' 
  '--with-pdo-mysql=shared,/usr/lib64/mysql/mysql_config'</code> </p>
  
  <p>It also says that these .ini files are being parsed:</p>
  
  <p><code>/etc/php.d/mysql.ini
  /etc/php.d/mysqli.ini</code></p>
  
  <p>The php.ini file also includes these lines: </p>
  
  <p><code>extension=mysql.so
  extension=mysqli.so</code>   </p>
  
  <p>So what's going wrong here?  Is mySQL not properly installed on the server?  How can I fix this?</p>
  
  <p>ADDENDUM: I should have explained that this is on a shared server that I don't administer.  I just have access to my folder on the server through SFTP.  But I do have a php.ini file and I have an extensions folder.  So is this something I can fix myself or do I need help from a server administrator?</p>