Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Fatal error: Call to undefined function mysql_connect()
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
cgloba...@hotmail.com  
View profile  
 More options Jul 7 2008, 6:02 pm
Newsgroups: comp.lang.php
From: cgloba...@hotmail.com
Date: Mon, 7 Jul 2008 15:02:18 -0700 (PDT)
Local: Mon, Jul 7 2008 6:02 pm
Subject: Fatal error: Call to undefined function mysql_connect()
Here is the output from phpinfo() on my laptop running windows vista.
As you can see mysql is mentioned several times in the output.  I'm
not sure why i get this error.  Php scripts that i save in the htdocs
folder seem to work as long as mysql is not called.  Any ideas?
Thanks

System  Windows NT ELMEU 6.0 build 6001
Build Date      May 2 2008 18:01:20

Configure Command       cscript /nologo configure.js "--enable-snapshot-
build" "--with-gd=shared" "--with-extra-includes=C:\Program Files
(x86)\Microsoft SDK\Include;C:\PROGRA~2\MICROS~2\VC98\ATL\INCLUDE;C:
\PROGRA~2\MICROS~2\VC98\INCLUDE;C:\PROGRA~2\MICROS~2\VC98\MFC\INCLUDE"
"--with-extra-libs=C:\Program Files (x86)\Microsoft SDK\Lib;C:
\PROGRA~2\MICROS~2\VC98\LIB;C:\PROGRA~2\MICROS~2\VC98\MFC\LIB"
Server API      Apache 2.0 Handler
Virtual Directory Support       enabled
Configuration File (php.ini) Path       C:\Windows
Loaded Configuration File       C:\php\php.ini
PHP API         20041225
PHP Extension   20060613

Apache Version  Apache/2.2.9 (Win32) PHP/5.2.6
Apache API Version      20051115
Server Administrator    ad...@hsd1.state.comcast.net
Hostname:Port   127.0.0.1:0
Max Requests    Per Child: 0 - Keep Alive: on - Max Per Connection: 100
Timeouts        Connection: 300 - Keep-Alive: 5
Virtual Server  No
Server Root     C:/Program Files/Apache Software Foundation/Apache2.2
Loaded Modules  core mod_win32 mpm_winnt http_core mod_so mod_actions
mod_alias mod_asis mod_auth_basic mod_authn_default mod_authn_file
mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user
mod_autoindex mod_cgi mod_dir mod_env mod_include mod_isapi
mod_log_config mod_mime mod_negotiation mod_setenvif mod_php5

PHP_SELF        /test.php
_SERVER["HTTP_HOST"]  127.0.0.1
_SERVER["HTTP_USER_AGENT"]    Mozilla/5.0 (Windows; U; Windows NT 6.0; en-
US; rv:1.9) Gecko/2008052906 Firefox/3.0
_SERVER["HTTP_ACCEPT"]        text/html,application/xhtml+xml,application/
xml;q=0.9,*/*;q=0.8
_SERVER["HTTP_ACCEPT_LANGUAGE"]       en-us,en;q=0.5
_SERVER["HTTP_ACCEPT_ENCODING"]       gzip,deflate
_SERVER["HTTP_ACCEPT_CHARSET"]        ISO-8859-1,utf-8;q=0.7,*;q=0.7
_SERVER["HTTP_KEEP_ALIVE"]    300
_SERVER["HTTP_CONNECTION"]    keep-alive
_SERVER["PATH"]       C:\Windows\system32;C:\Windows;C:\Windows
\System32\Wbem;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:
\Acer\Empowering Technology\eDataSecurity\;C:\Acer\Empowering
Technology\eDataSecurity\x86;C:\Acer\Empowering Technology
\eDataSecurity\x64;C:\Program Files\MySQL\MySQL Server 5.0\bin
_SERVER["SystemRoot"] C:\Windows
_SERVER["COMSPEC"]    C:\Windows\system32\cmd.exe
_SERVER["PATHEXT"]    .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
_SERVER["WINDIR"]     C:\Windows
_SERVER["SERVER_SIGNATURE"]   no value
_SERVER["SERVER_SOFTWARE"]    Apache/2.2.9 (Win32) PHP/5.2.6
_SERVER["SERVER_NAME"]        127.0.0.1
_SERVER["SERVER_ADDR"]        127.0.0.1
_SERVER["SERVER_PORT"]        80
_SERVER["REMOTE_ADDR"]        127.0.0.1
_SERVER["DOCUMENT_ROOT"]      C:/Program Files/Apache Software Foundation/
Apache2.2/htdocs
_SERVER["SERVER_ADMIN"]       ad...@hsd1.state.comcast.net
_SERVER["SCRIPT_FILENAME"]    C:/Program Files/Apache Software Foundation/
Apache2.2/htdocs/test.php
_SERVER["REMOTE_PORT"]        49894
_SERVER["GATEWAY_INTERFACE"]  CGI/1.1
_SERVER["SERVER_PROTOCOL"]    HTTP/1.1
_SERVER["REQUEST_METHOD"]     GET
_SERVER["QUERY_STRING"]       no value
_SERVER["REQUEST_URI"]        /test.php
_SERVER["SCRIPT_NAME"]        /test.php
_SERVER["PHP_SELF"]   /test.php
_SERVER["REQUEST_TIME"]       1215467590


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jerry Stuckle  
View profile  
 More options Jul 7 2008, 8:26 pm
Newsgroups: comp.lang.php
From: Jerry Stuckle <jstuck...@attglobal.net>
Date: Mon, 07 Jul 2008 20:26:59 -0400
Local: Mon, Jul 7 2008 8:26 pm
Subject: Re: Fatal error: Call to undefined function mysql_connect()

You don't have the MySQL extension loaded.  Either it's not being loaded
in your php.ini file, or if it is, the MySQL client libraries are not
available when the PHP code is loaded.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
burgermeister01@gmail.com  
View profile  
 More options Jul 8 2008, 9:13 am
Newsgroups: comp.lang.php
From: "burgermeiste...@gmail.com" <burgermeiste...@gmail.com>
Date: Tue, 8 Jul 2008 06:13:02 -0700 (PDT)
Local: Tues, Jul 8 2008 9:13 am
Subject: Re: Fatal error: Call to undefined function mysql_connect()
On Jul 7, 5:02 pm, cgloba...@hotmail.com wrote:

It looks as though you have the mysql directory in your include path,
but you do not have the mysql extension for PHP installed. Check this
link out for all the info you need to get it setup:

http://us3.php.net/manual/en/mysql.installation.php

Hopefully the fact that you're running Vista won't cause you any
additional complications, as I understand that new OS has caused all
kinds of software anomalies.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
petersprc  
View profile  
 More options Jul 8 2008, 1:19 pm
Newsgroups: comp.lang.php
From: petersprc <peters...@gmail.com>
Date: Tue, 8 Jul 2008 10:19:02 -0700 (PDT)
Local: Tues, Jul 8 2008 1:19 pm
Subject: Re: Fatal error: Call to undefined function mysql_connect()
Hi,

Try commenting out this line in c:\php\php.ini and restarting:

extension=php_mysql.dll

On Jul 7, 6:02 pm, cgloba...@hotmail.com wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
DS  
View profile  
 More options Jul 8 2008, 10:15 pm
Newsgroups: comp.lang.php
From: DS <d...@nospam.com>
Date: Tue, 8 Jul 2008 19:15:38 -0700
Local: Tues, Jul 8 2008 10:15 pm
Subject: Re: Fatal error: Call to undefined function mysql_connect()
For PHP 5.x try the MySQL Improved Extension "mysqli"
You call mysqli_init() followed by mysqli_real_connect()

=================================================

On 2008-07-07 15:02:18 -0700, cgloba...@hotmail.com said:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
cgloba...@hotmail.com  
View profile  
 More options Jul 9 2008, 7:22 am
Newsgroups: comp.lang.php
From: cgloba...@hotmail.com
Date: Wed, 9 Jul 2008 04:22:15 -0700 (PDT)
Local: Wed, Jul 9 2008 7:22 am
Subject: Re: Fatal error: Call to undefined function mysql_connect()
Thanks for the quick responses.  I'll try the solutions and let you
all know.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »