473,703 Members | 2,396 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help: Fatal error: Call to undefined function mssql_connect()

I have PHP Version 5.0.3 installed on Windows XP Pro with IIS as the
webserver. All is working well, except I get a -

Fatal error: Call to undefined function mssql_connect() in
C:\Inetpub\wwwr oot\Certificate Occupancy\main. php on line 33

line 33: $conn = mssql_connect(t oshibo,sa,laded a) or die ("Could Not
Connect to Database");

when trying to use mssql_connect. Info.php shows that the mssql module
is loading which tells me that where I uncommented

extension=php_m ssql.dll

in the php.ini file is working. I have set up paths for both the
c:\php\ext and c:\php directories.

I had PHP 4.3.10 installed on the same box a day earlier, and the
function worked. Also, I am using the ISAPI method for PHP instead of
the CGI if it matters.

Any ideas?

Jul 17 '05 #1
4 61399
Biffo wrote:
I have PHP Version 5.0.3 installed on Windows XP Pro with IIS as the
webserver. All is working well, except I get a -

Fatal error: Call to undefined function mssql_connect() in
C:\Inetpub\wwwr oot\Certificate Occupancy\main. php on line 33
good way to at least get an idea of what's going on:

if (function_exist s('mssql_connec t'))
echo "Okay, fn is there"
else
echo "Hmmm .. fn is not even there");
from there you can start to diagnose the problem better.
extension=php_m ssql.dll

in the php.ini file is working. I have set up paths for both the
c:\php\ext and c:\php directories.
does php_info() show the extension as successfully loaded?

I had PHP 4.3.10 installed on the same box a day earlier, and the
function worked. Also, I am using the ISAPI method for PHP instead of
the CGI if it matters.


only things i can think of:

1. you've changed something about your SQL Server Installation since then
(does the mssql extension require extra libraries or DLLs or something) ??
2. PHP5 put php.ini in a different location and you're editing the wrong
one. (i.e. you're editing c:\php.ini and PHP5 is looking in C:\windows or
vice versa ...)
3. some paths aren't quite set up to find DB libraries or something.
good ruck.
mark.

--
I am not an ANGRY man. Remove the rage from my email to reply.
Jul 17 '05 #2
Biffo wrote:
I have PHP Version 5.0.3 installed on Windows XP Pro with IIS as the
webserver. All is working well, except I get a -

Fatal error: Call to undefined function mssql_connect() in
C:\Inetpub\wwwr oot\Certificate Occupancy\main. php on line 33


IN PHP 5 mysql is be default not loaded... go to you php.ini and remove
to ';' before the mysql.dll extension and put the mysql.dll in your
system32 folder.
It is possible that there are more dll files ( such as libmysql.dll and
a few more) you have to put in the system32 folder.. but you probably
got them all in the php 5 folder...

MI
Jul 17 '05 #3
On Wed, 19 Jan 2005 13:28:24 +1100, Muffinman
<bl************ *******@custodi s.cistron.nl> wrote:
Biffo wrote:
I have PHP Version 5.0.3 installed on Windows XP Pro with IIS as the
webserver. All is working well, except I get a -

Fatal error: Call to undefined function mssql_connect() in
C:\Inetpub\wwwr oot\Certificate Occupancy\main. php on line 33


IN PHP 5 mysql is be default not loaded... go to you php.ini and remove
to ';' before the mysql.dll extension and put the mysql.dll in your
system32 folder.


mysql != mssql.

--
Andy Hassall / <an**@andyh.co. uk> / <http://www.andyh.co.uk >
<http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #4
Andy Hassall wrote:
On Wed, 19 Jan 2005 13:28:24 +1100, Muffinman
<bl************ *******@custodi s.cistron.nl> wrote:

Biffo wrote:
I have PHP Version 5.0.3 installed on Windows XP Pro with IIS as the
webserver. All is working well, except I get a -

Fatal error: Call to undefined function mssql_connect() in
C:\Inetpub\w wwroot\Certific ateOccupancy\ma in.php on line 33


IN PHP 5 mysql is be default not loaded... go to you php.ini and remove
to ';' before the mysql.dll extension and put the mysql.dll in your
system32 folder.

mysql != mssql.

Sorry... but in the end it's probably the same problem anyway.. y=s

MI
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
9980
by: BT | last post by:
Hi .. a newbie question. I get the following error: Fatal error: Call to undefined function: mysql_connect() in /var/www/html/index.php on line 3. I have the following RPMS installed on RH7.2 MySQL-client-4.0.14-0 I would really appreciate it. MySQL-shared-4.0.14-0 MySQL-server-4.0.14-0 MySQL-devel-4.0.14-0
5
16535
by: Daniel Hansen | last post by:
I am getting a "Fatal error: Call to undefined function: imagecreatefromjpeg() in..." error in one of my scripts, and after doing a bit of searching on the 'net I found various messages relating to a failure to have the GD library installed. However, my phpinfo() reports (in the Apache GD section): GD Support enabled GD Version bundled (2.0 compatible) GIF Read Support enabled PNG Support enabled
5
68834
by: Randell D. | last post by:
Folks, I feel like pulling my hair out - I tried unsuccessfully over the past few days to install ImagMagick but because of version conflicts and missing libraries I had to give up. I originally choose ImageMagick because I've heard so much about it. I then decided to go with the inbuilt GD tools since I'm using PHP 4.3.3 that I compiled with --with-gd. I can use some of the image functions in PHP so why is this one undefined? What...
4
15343
by: gc | last post by:
I'm a PHP and MySQL newbie. I have a feeling a lot of you may have seen this before. I'm teaching myself PHP/MySQL and trying to setup a guestbook. I'm running latest versions of Apache, PHP and MySql on WIN 2000. PHP is installed from the zip file. When serving php docs (code snippets below) I get the messages: "Fatal error: Call to undefined function mysql_connect() " "Fatal error: Call to undefined function mysql_pconnect() "
5
4154
by: Grant Nosbush | last post by:
I have searched the newsgroups and the web trying to solve this problem and just can't get it. Maybe someone will be able to help. I am getting the following error when I try to view a test page in my browser. This test page just reads a table in mysql and outputs the results. Fatal error: Call to undefined function: mysql_connect() in /var/web/public/test.php on line 2 I'm using:
2
6305
by: salvadorvp | last post by:
Hi, I have the following code that gives me this odd error message at a line of code inside the PEAR libraries: "Fatal error: Call to undefined function: MDB2_Driver_mssql::getMessage(). in C:\php\PEAR\lib\MDB2.php on line 1921" My code is a simple submit processing form for a login page: <?php
9
5258
by: java | last post by:
Hey there, I just removed an elderly PHP4-Installation from my Windows-Box and installed PHP 5.2.1. I used the PHP4-Module as local batchfile- interpreter by E:\ersDHCP>php ./extractLog.php which was perfectly alright and worked well. But now PHP5 fails to run the same script without any modification!
10
8384
by: myshona | last post by:
Hi Everybody, I am getting the below error Fatal error: Call to undefined function xslt_create() In my phpinfo page it shows that xsl is enabled. What might be the problem?.I am using php 5 and apache server 2.2 . Please help me out. Regards, Raj
1
1713
by: Khaled Mohamed | last post by:
Hi guys, I'm trying to setup apache v2.2.17 win 32, php v5.2.17 Win32 VC6 and mysql v5.5.10 win 32 on a winxp sp3 computer. Up till now php is working with well with apache as I write in a .php file phpinfo() and this results in the beautiful php information page. Mysql runs well alone as I can read and write data from the mysql workbench v5.2.33b win32. I setup the odbc connector v5.1.8 win32. The problem is with php and mysql. I...
0
8757
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8669
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9251
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9016
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8961
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6588
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4687
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3123
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2069
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.