473,396 Members | 1,678 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,396 software developers and data experts.

PHP et MSSQL probleme de connexion

Bonjour à tous, j'utilise Apache php et mysql sans probleme, j'ai
voulu passer pour des raisons pro sur IIS PHP MS SQL.IIS et PHP
fonctionne bien, j ai decommenté la ligne pour ms sql, copier la dll
au bon endroit, crée un DSN qui fonctionne en ASP.
Impossible de me connecter en php avec mon code :
$connection = mssql_connect("nom_serveur","admin","pass");
if (!$connection) {
echo "connexion impossible!";
exit; }
Mon serveur SQL est en authentification mixte, le compte admin est ok
j'ai sans arret l'erreur : "Unable to connect to server:xxx"
je ne vois pas ce qui deconne, j'ai beau chercher, je ne vois pas ...
En ASP, on renvoi les infos sur le nom du DSN, apparement on ne le
fait pas en php, seul le serveur, le login et le pass suffisent ...
???

Merci de votre reponse, je vais devenir fou ...
Jul 17 '05 #1
1 4992
Hi cyril,

My french is very weak, so I use english to answer.

On 16 Mar 2004 13:59:48 -0800, cy******@wanadoo.Fr (cyril) wrote:
Bonjour à tous, j'utilise Apache php et mysql sans probleme, j'ai
voulu passer pour des raisons pro sur IIS PHP MS SQL.IIS et PHP
fonctionne bien, j ai decommenté la ligne pour ms sql, copier la dll
au bon endroit, crée un DSN qui fonctionne en ASP.
Impossible de me connecter en php avec mon code :
$connection = mssql_connect("nom_serveur","admin","pass");
if (!$connection) {
echo "connexion impossible!";
exit; }

Try using listening on TCP for the setup of the SQL server and use
mssql_connect (IP_ADDRESS:1433, "admin", "pass");

If this doesn't work, it might be a firewall issue. Test it with

telnet IP_ADDRESS 1433

If its very slow, its probably a Reverse DNS issue.

HTH, JochenMon serveur SQL est en authentification mixte, le compte admin est ok
j'ai sans arret l'erreur : "Unable to connect to server:xxx"
je ne vois pas ce qui deconne, j'ai beau chercher, je ne vois pas ...
En ASP, on renvoi les infos sur le nom du DSN, apparement on ne le
fait pas en php, seul le serveur, le login et le pass suffisent ...
???

Merci de votre reponse, je vais devenir fou ...


--
Jochen Daum - Cabletalk Group Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/
Jul 17 '05 #2

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

Similar topics

7
by: mj | last post by:
Hello, thanks for the help. I am running a WinXP Pro w/ SP2 (my home computer, with ZoneAlarm firewall) Apache 2.0.52 MySQL 4.1.7 PHP 5.1.0-dev I have developed a PHP/MySQL web app that...
2
by: grigoo | last post by:
bonjour a tous je me presente a vous::: greg dit le grigoo sur le web ,,etudiant en bioinformatique a montreal et jusqu au cou dans notre language prefere....java. et biojava.. et je suis en un...
0
by: Jan Metzger | last post by:
Probleme mit JOIN und COUNT, da ich sehr experimentierfreudig bin, versuche ich von zeit zu zeit neue Tabellen und abfragen-konstrukte für meine Community... da ich mir alles was ich über PHP...
2
by: elsC | last post by:
Bonjour, Je viens d'installer SQL Server 2000 Dev edition. J'ai créé des connexions sécurisées SQL Server et pourtant lorsque j'essaie de me connecter avec PHP (mssql_connect('localhost',...
2
by: loki | last post by:
hello, when i do ..... set xmlhttp = CreateObject("WinHTTP.WinHTTPRequest.5.1") ...... StrXmlhttpResponseText = xmlhttp.responseText StrXmlhttpResponseText = replace(StrXmlhttpResponseText,...
0
by: ThomasB | last post by:
hello all, and first sorry for my bad english. I'm trying to implement a way to enable unique connexion for user to a web site with VWExpress, dotnet 2. I use profile to store user...
2
by: Serge Fournier | last post by:
Hello everyone. How to give the connexion information to a crystal report at run time ? same question concerning the SQL string for data extraction ? Is it "a must" to disconnect the report at...
3
by: Secrétariat | last post by:
Hello ! I use a PostgreSQL server 7.4 on Linux Mandrake 10 with IP 192.168.0.15, a database gestix is created. An PostegreSQL user "postgres" id defined on this server, I add in the...
0
by: tsic | last post by:
Bonjour, Voilà, j'ai débuté recemment avec python et je veux faire une connexion client serveur (windows) par l'intermédiaire d'une interface QT Designer v 4. j'ai choisi ERIC v 4 comme IDE. ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
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...
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...

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.