473,473 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Fatal error with mssql_connect()

9 New Member
hii

i have faced a fatel error like.."Fatal error: Call to undefined function: mssql_connect() in c:\winnt\temp\tmphrivp8.php on line 7"

i am using php with plone in windows xp pro..

any ideas wat is wrong???
Aug 28 '07 #1
12 2619
ak1dnar
1,584 Recognized Expert Top Contributor
hii

i have faced a fatel error like.."Fatal error: Call to undefined function: mssql_connect() in c:\winnt\temp\tmphrivp8.php on line 7"

i am using php with plone in windows xp pro..

any ideas wat is wrong???
Reason for the error is,
you are trying to connect with MSSQL database on a non-configured Php/MsSQL environment.
Aug 28 '07 #2
ak1dnar
1,584 Recognized Expert Top Contributor
Inappropriate Thread Title changed.
fatal error..need help..

Please find out how to create a good thread title
Aug 28 '07 #3
mmr315
25 New Member
please put the mysql driver for php in lib folder of apache
Aug 28 '07 #4
pbmods
5,821 Recognized Expert Expert
Heya, Aryan.

If you installed PHP from the .msi installer, simply use the Change/Repair feature in Add/Remove Programs and add MS SQL support.
Aug 28 '07 #5
aryan2cool
9 New Member
Heya, Aryan.

If you installed PHP from the .msi installer, simply use the Change/Repair feature in Add/Remove Programs and add MS SQL support.

php is installed manually and extension in php.ini file for mssql is made uncommented,,.but still not working....what next??
Aug 29 '07 #6
pbmods
5,821 Recognized Expert Expert
Heya, Aryan.

What do you mean by, "installed manually"? Did you compile it from source?
Aug 29 '07 #7
Purple
404 Recognized Expert Contributor
Hi,

can I suggest we go back to basics on this one and confirm where you are loading the php.ini file from.

Create a script with the following :

[PHP]<?php
phpinfo();
?>[/PHP]

and confirm the php.ini location is the same as you are changing. If that is ok, I would suggest changing the php.ini to match the following:

Expand|Select|Wrap|Line Numbers
  1. error_reporting  =  E_ALL
  2. display_errors = On
  3. display_startup_errors = On
and then restart your machine.

Now you should be getting an error msg when php initialises complaining about a missing dll.

Post back when you get to this point.

Regards Purple
Aug 29 '07 #8
aryan2cool
9 New Member
hii...
php dos not seem working in my system....wven after reinstalling it...now wat..any guidence??
Aug 31 '07 #9
Purple
404 Recognized Expert Contributor
Hi aryan,

as a site moderator, my first suggestion is you review the posting guidelines here, specifically acceptable forms of english in posts. You must appreciate this site has users across the globe and many will be struggling with well formed english.

Regards Purple
Aug 31 '07 #10
Purple
404 Recognized Expert Contributor
aryan,

Can you provide some more informaiton on your environment. I know you are running win XP, PHP and plone. Which webserver are you using ? version of php have you installed ?

The installation you have performed, did you use the PHP installer and then add plone ?

If you are running IIS, are you using CGI or ISAPI or fast CGI ?

What do you get if you run:

[PHP]<?php
phpinfo();
?>[/PHP]

Regards Purple
Aug 31 '07 #11
aryan2cool
9 New Member
dear purple

thank you for your kind help and i really do appreciate the way you have been moderating this forum.



I am using php4.0 in IIS(CGI) server.

What do you get if you run:

[PHP]<?php
phpinfo();
?>[/PHP]


I get nothing when i run that.. its opening by default in note pad and when opened with mozila browser.. nothing appears....

i am puzzled what is happening...can you please guide me..

regards.
Aryan
Aug 31 '07 #12
Purple
404 Recognized Expert Contributor
Aryan,

open IIS Manager. open the websites folder - right click on the website of interest and select the home directory tab, click configuration and confirm an entry exists in the list for .php pointing to the cgi exe in the php folder.

then post back..

Regards Purple
Aug 31 '07 #13

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Tim Tyler | last post by:
I'm getting fatal errors when executing code - and my error handler is failing to trap them - so I get no stack backtrace :-( The error I am getting is: "Fatal error: Call to a member function...
4
by: Biffo | last post by:
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...
2
by: Itjalve | last post by:
This gives me a fatal error. I'm using .NET VC7.1 and made a win32 consol app, I have no problems with VC6. Debug build. I have removed nearly all my code this is whats left. From the beginning...
2
by: David Haynes | last post by:
I can't seem to get the magic to work to connect to SQL Server via mssql_connect(). I can get odbc_connect to work just fine, but not mssql_connect. Could someone please post an example of how the...
1
by: kvarada | last post by:
Hello Experts, I am building my application on WinNT.4.0_i386_MSVC.7.1 platform. When I build the application on a stand alone machine, it builds fine. But when I build the same application from a...
1
by: aryan2cool | last post by:
how to solve the fatal error...call to undefined function mssql_connect() extension in php.ini file is uncommented already..
8
by: dreamer247 | last post by:
hi i am working on a intranet project for last 10 days.the project was previously under someone else... technologies used are php,zope plone mssql in winxp pro. the project in a different server...
4
by: aryan2cool | last post by:
hii all i am using php 5 and a warning has occured in my application " Warning: mssql_connect() : message: Login failed for user 'PAYDATA'. (severity 14) in C:\WINNT\Temp\tmpqjqokj.php on...
6
by: pugalenthi | last post by:
I am trying to connect to the SQL Server and then to create a database table using PHP script. The code is as follows,<job id="sqlserver1"> <script language="PHPScript"> $connection =...
0
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...
0
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,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
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...

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.