IIS Linux-Script php script taşıma başarısız

0 Cevap php

Merhaba IIS ince çalışan çalışır aşağıdaki komut dosyası var ama ben bir Linux kutusu üzerinde aynı komut dosyası koymak zaman aşağıdaki hata ile başarısız olur. Bu sadece çalışmak gerekmez mi?

Ölümcül hata: tanımlanmamış işlev mssql_connect çağır () / home / thePathToTheScript / services / dhTest.php line 10

Satır 10 = $ db = mssql_connect ($ Sunucum, $ myuser, $ gizlisifre)

//start
$myServer = "SQLB15.sqlDBCenter.com";
$myUser = "unc_user";
$myPass = "unc1234";
$myDB = "db_Stuff"; 

//connection to the database
$dbhandle = mssql_connect($myServer, $myUser, $myPass)
  or die("Couldn't connect to SQL Server on $myServer"); 

//select a database to work with
$selected = mssql_select_db($myDB, $dbhandle)
  or die("Couldn't open database $myDB"); 

//declare the SQL statement that will query the database
$query = "SELECT DISTINCT Name As theName";
$query .= "FROM tb_Names ";
$query .= "ORDER BY Name";

//execute the SQL query and return records
$result = mssql_query($query);
//---------------------------------------------------------------- 

Çok takdir Herhangi bir işaretçiler

Added - this is the mssql section of the php.ini [MSSQL] ; Allow or prevent persistent links. mssql.allow_persistent = On

; Maximum number of persistent links. -1 means no limit. mssql.max_persistent = -1

; Maximum number of links (persistent+non persistent). -1 means no limit. mssql.max_links = -1

; Minimum error severity to display. mssql.min_error_severity = 10

; Minimum message severity to display. mssql.min_message_severity = 10

; Compatability mode with old versions of PHP 3.0. mssql.compatability_mode = Off

; Connect timeout ;mssql.connect_timeout = 5

; Query timeout ;mssql.timeout = 60

; Valid range 0 - 2147483647. Default = 4096. ;mssql.textlimit = 4096

; Valid range 0 - 2147483647. Default = 4096. ;mssql.textsize = 4096

; Limits the number of records in each batch. 0 = all records in one batch. ;mssql.batchsize = 0

; Specify how datetime and datetim4 columns are returned ; On => Returns data converted to SQL server settings ; Off => Returns values as YYYY-MM-DD hh:mm:ss ;mssql.datetimeconvert = On

; Use NT authentication when connecting to the server mssql.secure_connection = Off

; Specify max number of processes. Default = 25 ;mssql.max_procs = 25

0 Cevap