Basically we tried everything... enabling TCP/IP, named pipes, etc... everything that I have ever had issues with. Didn't work.
@r00tme, @Dea7h ideas? :D
Use that. Error should be displayed in your website. You can share the error here.
<?php
if(!defined('inIndex')){ header('Location: ../'); exit(); }
//Sql server detailes
error_reporting(E_ALL ^E_NOTICE ^E_WARNING);
$web['dbhost'] = '127.0.0.1';
$web['database'] = 'MuOnline';
$web['dbuser']...
Okay, I have just realized what happened.
Go back to the mssql_connect...
mssql_connect(arguments...) or die('Couldn't connect to SQL Server! ');
And change it to:
mssql_connect(arguments...);
die(); // THIS SHOULD STAY!!
If your server is offline (game server), there might be huge timeout on the server status indicator. Search for fsockopen and check the fifth argument. Set it to 0.1 or something like that.
If you locate the mssql_connect function, I guess that you will see something like:
mssql_connect(arguments...) or die('Couldn't connect to SQL Server! ');
Can you remove "or die('Couldn't connect to SQL Server! ')" and give us the output then?
As far as I remember XAMPP 1.7.1 was the last version to support the mssql_* functions.
You can check Damian's post which provided code to define those functions again using the SQL Server PHP extension;
Guide on how to add SQL Server drivers.
lkrumov / MuOnline_Web_API — Bitbucket
Използвайте каквото ви хареса ;) (на мен вече нищо не ми харесва :D)
EDIT: Проекта НЕ Е завършен и най-вероятно така ще си остане. :)
Успех! Ако ще правиш функции с предмети, мога да ти дам няколко класа (факторита), които се грижат за разликите в сезоните (между старите и новите версии, до сезон 5). Връщат JSON и можеш да ги използваш спокойно във frontend-a и backend-a :)