Need Help (Xampp 1.8.1

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Need Help (Xampp 1.8.1

Postby FishnZone » 15. May 2013 19:11

I'm using in Xampp 1.8.1 & ijji website 2010.
Error:
Code: Select all
Notice: Use of undefined constant Host - assumed 'Host' in C:\xampp\htdocs\secure\config.php on line 7

Notice: Use of undefined constant User - assumed 'User' in C:\xampp\htdocs\secure\config.php on line 8

Notice: Use of undefined constant Pass - assumed 'Pass' in C:\xampp\htdocs\secure\config.php on line 9

Notice: Use of undefined constant DBNa - assumed 'DBNa' in C:\xampp\htdocs\secure\config.php on line 10

Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\secure\config.php on line 12


config.php
Code: Select all
<?

@session_start();

//MSSQL Server configuration

$_MSSQL[Host]               = "USER-A1D076756B\SQLEXPRESS";
$_MSSQL[User]               = "salo";
$_MSSQL[Pass]               = "33212322";
$_MSSQL[DBNa]               = "GunzDB";

$r = mssql_connect($_MSSQL[Host], $_MSSQL[User], $_MSSQL[Pass]) or die("Cant connect to database");
mssql_select_db($_MSSQL[DBNa], $r);

// Here you set the language for the panel
// If you set this to english, the panel will try to load lang/english.php
$_CONFIG[Language]  = "english";

// Gunz Database Configuration
$_CONFIG[AccountTable]  = "Account";
$_CONFIG[LoginTable]    = "Login";
$_CONFIG[CharTable]     = "Character";
$_CONFIG[CItemTable]    = "CharacterItem";
$_CONFIG[AItemTable]    = "AccountItem";
$_CONFIG[ClanTable]     = "Clan";
$_CONFIG[ClanMembTable] = "ClanMember";
$_CONFIG[ClanLogTable]  = "ClanGameLog";

// Plugins Configuration
// To Disable, set the variable to 0
// To Enable, set the variable to 1

$_CONFIG[CountryBlock]  = 0;        // Add functions to Block / Unblock access to your GunZ Server

//MySQL Server configuration

$_MYSQL[Host]               = "localhost";
$_MYSQL[User]               = "root";
$_MYSQL[Pass]               = "pasword";
$_MYSQL[DBNa]               = "foro";

//Configuration

$_CONFIG[NewsFID]           = 2;
$_CONFIG[EventsFID]         = 0;
$_CONFIG[vBulletinPrefix]   = "xxxxx";
$_CONFIG[ForumURL]          = "http://xxx.tk/";

//Offline page
$_CONFIG[OfflinePage]       = "";

// Gunz Database Configuration
$_CONFIG[LoginTable]    = "Login";
$_CONFIG[CharTable]     = "Character";
$_CONFIG[ClanTable]    = "Clan";
$_CONFIG[ClanmemberTable]    = "ClanMember";
$color[255] = array(255,153,51); // Administrator
$color[254] = array(255,153,51); // Developer/Gamemaster
$color[253] = array(255,255,255); // Banned
$color[252] = array(255,153,51); // Hidden GM
$color[2]   = array(0,68,255); // User With Jjang
$color[0]   = array(255,255,255); // Normal User

// Here you set the language for the panel
// If you set this to english, the panel will try to load lang/english.php
$_CONFIG[Language]  = "english";

// Gunz Database Configuration
$_CONFIG[LoginTable]    = "Login";
$_CONFIG[CharTable]     = "Character";
$_CONFIG[ClanTable]    = "Clan";
$_CONFIG[ClanmemberTable]    = "ClanMember";


?>



What i need to do ?

I try to do
"extension=php_mssql.dll" and ";short_open_tag = On"

*Error from Xampp
Image
FishnZone
 
Posts: 1
Joined: 15. May 2013 19:07
Operating System: XP

Re: Need Help (Xampp 1.8.1

Postby Altrea » 15. May 2013 19:17

http://stackoverflow.com/questions/2941 ... stant-mean
don't use phps short_open_tag to start php blocks
mssql functions are obsolet. use sqlsrv instead
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 121 guests