473,385 Members | 1,730 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

mssql_pconnect

So far, all my database programming in php has been with a mysql database.
I need to connect to a SQL Server database. I looked in the manual and it
seemed rather easy. It seemed that all I had to do was replace mysql with
mssql everywhere I had coded before.

So, naturally, on my first call which was to mssql_pconnect I received the
following message:

Fatal error: Call to undefined function mssql_pconnect()

Now I must say that php was not previously installed on this server. I had
the admin fellow install it (and this was his first time). Are the
database routines some sort of additional installation that simply haven't
been installed?

Thanks for any help

Shely
Feb 17 '06 #1
4 5345
Shelly wrote:
So far, all my database programming in php has been with a mysql database.
I need to connect to a SQL Server database. I looked in the manual and it
seemed rather easy. It seemed that all I had to do was replace mysql with
mssql everywhere I had coded before.

So, naturally, on my first call which was to mssql_pconnect I received the
following message:

Fatal error: Call to undefined function mssql_pconnect()

Now I must say that php was not previously installed on this server. I had
the admin fellow install it (and this was his first time). Are the
database routines some sort of additional installation that simply haven't
been installed?

Thanks for any help

Shely

uncomment the php_mssql.dll in the extensions section of php.ini
(assuming you're using a windows box) or recompile using --with-mssql if
using Linux.

-david-

Feb 17 '06 #2
Shelly wrote:
So far, all my database programming in php has been with a mysql database.
I need to connect to a SQL Server database. I looked in the manual and it
seemed rather easy. It seemed that all I had to do was replace mysql with
mssql everywhere I had coded before.

So, naturally, on my first call which was to mssql_pconnect I received the
following message:

Fatal error: Call to undefined function mssql_pconnect()

Now I must say that php was not previously installed on this server. I had
the admin fellow install it (and this was his first time). Are the
database routines some sort of additional installation that simply haven't
been installed?

Thanks for any help

Shely


It would help if we knew what platform/webserver you are using but a first guess
would be to check your PHP.INI file to make sure that you are loading the MSSQL
module.

--
Michael Austin.
DBA Consultant
Donations welcomed. Http://www.firstdbasource.com/donations.html
:)
Feb 17 '06 #3

"Michael Austin" <ma*****@firstdbasource.com> wrote in message
news:Pn******************@newssvr25.news.prodigy.n et...
It would help if we knew what platform/webserver you are using but a first
guess would be to check your PHP.INI file to make sure that you are
loading the MSSQL module.


He loaded the mssql, but did something wrong. It now says:
Fatal error: Call to undefined function mssql_pconnect() in
E:\mysite\sqlLoginNewDB.php on line 9
PHP Warning: PHP Startup: Unable to load dynamic library './php_mssql.dll' -
The specified module could not be found. in Unknown on line 0

Feb 18 '06 #4
Shelly wrote:
"Michael Austin" <ma*****@firstdbasource.com> wrote in message
news:Pn******************@newssvr25.news.prodigy.n et...
It would help if we knew what platform/webserver you are using but a first
guess would be to check your PHP.INI file to make sure that you are
loading the MSSQL module.


He loaded the mssql, but did something wrong. It now says:
Fatal error: Call to undefined function mssql_pconnect() in
E:\mysite\sqlLoginNewDB.php on line 9
PHP Warning: PHP Startup: Unable to load dynamic library './php_mssql.dll' -
The specified module could not be found. in Unknown on line 0

Two things:
1. in php.ini there is a tag named 'extension_dir'. This needs to point
to the 'ext' directory of wherever you installed php.
2. there is a diagnostic you can run that will tell you all about how
the system is set up (and will help us diagnose things for you). Simply
create a file with the following contents: <?php phpinfo() ?> and run it.

-david-

Feb 18 '06 #5

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

Similar topics

0
by: Chung Leong | last post by:
I've been having intermittent connection problems with my M$SQL 2000/Apache2/PHP set up. Every now and then the mssql_pconnect() would fail. M$SQL is running on a separate dedicated server while...
2
by: Arthur P. | last post by:
Hi NG! I am connecting to a msSQL-DB with an own, simple DB conn-class, after closing the connection, to the DB with mssql_close($this->myhandle), I still can query my DB; mssql_close returns...
2
by: ao | last post by:
I had PHP installed on as CGI on a Window 2000 Server and connected to an MSSQL 2000 on another server. Both server were upgraded to Windows Server 2003 and problems developed that I could no...
5
by: Sheldon Glickler | last post by:
My message levels are turned up too high and the one that installed php for me is new to it. I need to have them turned down some. I get the following message from a simple query: Warning:...
11
by: Sheldon Glickler | last post by:
I have code that does not delete from a database. The same code (cut an paste in the same file, but different function and having a different query) works. So, of course, I tested the query...
37
by: Joshua Ruppert | last post by:
When I'm using FastCGI do I need to code differently than I do when using regular CGI? Because the PHP.exe processes don't go away do global variables stick around from page request to page...
0
by: kencana | last post by:
Hi all, is there any tutorial for me about creating connection pool in php? so far, what i read from articles is that i have to use mssql_pconnect. As I am going to create a web service, thats...
1
by: dreaken667 | last post by:
I've dealt with issues with not being able to connect to the database through PHP and know how to correct most of them fairly easily, however, I've got a really odd situation here. I'm running PHP...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.