Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 07:19

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



IIS PHP Odbc/mssql probleme

Discussion on IIS PHP Odbc/mssql probleme within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2013
Posts: 6
Received Thanks: 0
IIS PHP Odbc/mssql probleme

Hey, ich bin noch recht neu auf dem gebiet, ich benutze iis 7 mit PHP 7 (wenn ich PHP 5 benutze bekomme ich nur einen weißen Browser)auf Windows 7 aber wenn ich eine verbindung mit mssql aufbauen will bekomme ich den fehler

PHP Fatal error: Uncaught Error: Call to undefined function mssql_connect()

das gleiche wenn ich es mit odbc versuche

PHP Fatal error: Uncaught Error: Call to undefined function odbc_connect()

in der PHP.ini habe ich das ; vor extension=php_pdo_odbc.dll entfernt

Den Path hab ich zum PHP verzeichnis aber ich bekomme einfach keine verbindnung zu mssql, habe ich vielleicht noch was vergessen?
hier der code den ich zum test nutze.
Danke schonmal für die antworten
Sweadest is offline  
Old 07/01/2016, 17:45   #2
 
krosswarrior's Avatar
 
elite*gold: 1278
Join Date: Dec 2011
Posts: 377
Received Thanks: 35
Sicher, dass du mssql und nicht sqlsrv brauchst? Was sagt phpinfo()? mssql wurde in PHP7 nämlich entfernt.

krosswarrior is offline  
Old 07/01/2016, 18:27   #3
 
elite*gold: 0
Join Date: Jun 2013
Posts: 6
Received Thanks: 0

Der gleiche Fehler, phpinfo() lässt sich problemlos öffnen.
Sweadest is offline  
Old 07/02/2016, 02:26   #4
 
krosswarrior's Avatar
 
elite*gold: 1278
Join Date: Dec 2011
Posts: 377
Received Thanks: 35
Gemeint war, ob du sqlsrv in phpinfo() rauslesen kannst.

Ungefähr sowas:
krosswarrior is offline  
Old 07/04/2016, 16:23   #5
 
elite*gold: 0
Join Date: Jun 2013
Posts: 6
Received Thanks: 0
Nein leider nicht, finde auch keinen treiber für php 7.
Laufen die für php 5.6 auch für 7.0?

*Hab etwas gefunden.

hm habe nun
php_sqlsrv_7_nts.dll
php_pdo_sqlsrv_7_nts.dll
doch kommt immernoch der gleiche fehler. php.ini eingestellt und server neugestartet.
Sweadest is offline  
Old 07/04/2016, 19:23   #6
 
krosswarrior's Avatar
 
elite*gold: 1278
Join Date: Dec 2011
Posts: 377
Received Thanks: 35
Wenn dus in phpinfo() nicht findest, ist es nicht korrekt installiert.
Das wäre die offizielle Anleitung:
krosswarrior is offline  
Old 07/14/2016, 00:45   #7
 
paddelx3's Avatar
 
elite*gold: 0
Join Date: Feb 2012
Posts: 202
Received Thanks: 133
Für PHP 7 brauchst du die .

Kurzer Blick in die Dokumentation zeigt, das odbc und mssql mit den SQL Server Treibern nicht funktionieren wird. Nutze dafür .
paddelx3 is offline  
Reply


Similar Threads Similar Threads
[RELEASE] Secure PHP Web Registration Script (MSSQL ODBC)
03/24/2018 - Shaiya PServer Guides & Releases - 48 Replies
This is a modernized version of my old registration script. It uses a safer method of querying the database that does not rely on escaping input to prevent SQL injection. The only files that are different from my old registration script are: db.config.php register.php changepass.php That means if you made changes to the views for the old registration page, you can reuse those same style changes with this registration page just by replacing the view files :)
[Release] PVP Rankings (MSSQL ODBC)
07/16/2017 - Shaiya PServer Guides & Releases - 57 Replies
First of all please don't ask how to use these files in this thread. There are plenty of sites on the internet which explain how to set up a WAMP/XAMPP/IIS server on a Windows OS based computer. All you need to run this is an MSSQL database, and a web server which can process PHP files, such as Apache (the A in the WAMP/XAMPP acronyms), or IIS7+. This is a PHP based rankings script for use with the MSSQL ODBC database connector. Features Tool-tip showing recent killed/killed by...
mssql/Odbc Connection
01/16/2013 - Rappelz Private Server - 5 Replies
I found a top 100 ranking script including a mssql_connect is there a way to make it a odbc connection instead of mssql? if not can anyone tell me how this should be connected to the server like mssql_connect <?php $host="......"; $user = "....."; $pw = "...";
MSSQL & ODBC question
09/12/2011 - SRO Private Server - 11 Replies
What version of MSSQL do you need to run the files? 2005 or 2008? (or 2008 R2?) Also, can anyone post a tutorial of setting up ODBC? You can call me a noob, i don't care.
[RELEASE]Web Pack ( MSSQL / ODBC )
05/01/2009 - Dekaron Private Server - 8 Replies
Hello guys. Here my little Web Script Pack as MSSQL and ODBC version. I hope , i have found now all bugs and errors and its work. In the Packs are the follow scripts : register.php <--- Register Accounts ranking.php <--- List characters , order by Level and Exp , list only non GMs guild.php <--- List all guilds . order by members count and list all guild members



All times are GMT +1. The time now is 07:19.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.