Php mysql dll ไม ม ใน xampp php_mssql.dll

I'm trying to get PHP set up to connect to a SQL Server database. I'm looking for the php_mssql.dll file to put in my extensions directory but for the life of me can't locate it online. Can anyone help?

Show

    asked Aug 25, 2010 at 10:56

    You should find it in the "ext" directory of php package, but only of PHP 5.2.X, PHP 5.3 doesn't include dll for mssql.

    answered Aug 25, 2010 at 11:03

    lg.lg.

    4,6693 gold badges21 silver badges20 bronze badges

    5

    Download the Zip (not installer) version of your version of PHP from the PHP site and extract it, you will find it in the ext folder here.

    สำหรับบทความนี้ จะนำเสนอการติดตั้งบน XAMPP โดยเพิ่มไดร์เวอร์ ของ SQL Server ให้กับ PHP รุ่น 8.1 ภายใต้ระบบปฎิบัติการ Windows

    ** ขั้นตอนการติดตั้ง XAMPP / PHP 8.1 จะไม่ขอกล่าวถึง จะข้ามไปที่ขั้นตอนติดตั้งไดร์เวอร์ของ SQL Server เลย โดยมีวิธีการดังนี้

    1. เข้าไปที่เว็บ Micsrosft เพื่อดาวน์โหลไดร์เวอร์ SQL Server สำหรับ php โดยคลิกที่ Link ด้่านล่าง

    Php mysql dll ไม ม ใน xampp php_mssql.dll

    เมื่อได้ zip ไฟล์มาแล้ว ให้แตก zip ไฟล์มาเก็บไว้ซักทีนึง ซึ่งเราจะเห็นไฟล์ไดร์เวอร์จำนวนมาก

    งานนี้ต้องตาดีได้ตาร้ายเสีย ดูรุ่นให้ตรงกับที่เราติดตั้ง PHP

    Php mysql dll ไม ม ใน xampp php_mssql.dll

    การเลือกไดร์เวอร์ต้องดูตอนติดตั้ง เช่น ติดตั้ง PHP 8.1 เป็นรุ่นไหน ระหว่าง nts หรือ ts และ x86 หรือ x64 ก็ต้องเลือกไฟล์ตามนั้น โดยเปิดดู PHPInfo ดูรายละเอียดรุ่นตามภาพ

    A setting in your php.ini could be causing the problem: Either the 'extension_dir' value is incorrect or the dll does not exist.

    Program Output: Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_mysql.dll' - The specified module could not be found. in Unknown on line 0

    Warning: PHP Startup: Invalid library (maybe not a PHP library) 'libmysql.dll' in Unknown on line 0

    When i try to download with command this same as before.

    C:\xampp\php>php -r "copy('https://getcomposer.org/installer', 'composer-setup.p hp');" PHP Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_ mysql.dll' - The specified module could not be found. in Unknown on line 0

    Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_mysql .dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\libm ysql.dll' - The specified module could not be found. in Unknown on line 0

    Warning: PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\libmysql. dll' - The specified module could not be found. in Unknown on line 0

    คือกำลังทำเวบโดยใช้ภาษา php เเล้วจะทำการเก็บไว้ในฐานข้อมูล sql server 2008 ค่ะเเต่ทำตามทุกเวบแล้วก็ไม่ขึ้นสักที ตรวจสอบที่ phpinfo ก็ยังไม่ขึ้น ตัว sql สักที แบบนี้ค่ะ

    Php mysql dll ไม ม ใน xampp php_mssql.dll
    เมื่อรันแล้วก็คือ error แบบนี้
    Php mysql dll ไม ม ใน xampp php_mssql.dll
    ใครจะพอมีวิธีแนะนำบ้างไหมค่ะ

    i got this error when i uncomment the php_mssql in php.ini file. coz ill be connecting to mssql database express in my project.

    based on research, ntwdblib.dll is required... so i downloaded the said file and put both under /sys32 and under /xampp... but still xampp didnt work properly.

    hope someone can share and bring solution to this.

    thanks,

    noister

    noister Posts: 6Joined: 01. December 2011 10:22 Operating System: Windows Server 2003



    by noister » 27. April 2012 08:01

    please help, im stuck here. almost a week problem haven't found a solution yet.

    i have xampp 1.7.4 and connect mssql 2005 express.

    here's the common things i did.

    1. php_mssql.dll in php.ini already uncomment and placed the file in xampp/php/ext, restart apache is done. 2. ntwdblib.dll (latest) already placed in system32 also in xampp/php, server has already reset. 3. also in mssql, enabled tcp/ip connections and already granted user.

    when i try to load my php code it says "Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\mobiletrack\system\loaddata.php on line 5"

    Please help what to do next, other than what i did above.

    noister

    [EDIT by Altrea: related Topics merged]

    noister Posts: 6Joined: 01. December 2011 10:22 Operating System: Windows Server 2003



    by noister » 03. May 2012 05:03

    it appears in Configure Command =

    Code: cscript /nologo configure.js "enable-snapshot-build" "--disable-isapi" "--enable-debug-pack" "--disable-isapi" "--without-mssql" "--without-pdo-mssql" "--without-pi3web" " noister Posts: 6Joined: 01. December 2011 10:22 Operating System: Windows Server 2003


    noister Posts: 6Joined: 01. December 2011 10:22 Operating System: Windows Server 2003


    by hackattack142 » 06. May 2012 04:50

    If you notice, that configure statement says "without" mssql. The mssql driver was discontinued some time ago and is no longer maintained as far as I am aware. It might be better to go with sqlsrv which is maintained by Microsoft. It should provide similar functionality. You will need to get the SQLSRV20.exe from http://www.microsoft.com/en-us/download ... x?id=20098 (Not the SQLSRV30.exe available on the same page as it is no longer compatible with your OS) and the Microsoft SQL Server 2008 Native Client from http://www.microsoft.com/en-us/download ... x?id=16177 (Not the SQL Server 2012 Native Client as it is no longer compatible with your OS). From the SQLSRV20.exe, you would put php_sqlsrv_53_ts_vc6.dll and php_pdo_sqlsrv_53_ts_vc6.dll in your PHP ext folder, add them to your PHP.ini file, and check that they appear in your phpinfo() when you start Apache.