Location: PHPKode > projects > MWS - ModularWebSystem > mwsf/conn.php
<?php
/***********************************************************************
 * MWS - ModularWebSystem
 * (C) paolo bosetti 2003
 * 
 * 
 * conn.php - Connessione server MySQL
 * 
 * CVS info:
 * 	Author: 	$Author: isil $
 *	Date: 		$Date: 2003/03/20 16:40:24 $
 *	Tag:		$Name: mwsf_alpha_5 $
 *	Revision:	$Revision: 1.2 $
 * 
 **********************************************************************/
 
 /***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

// HackAttack
if (!defined('IN_MWS')) { die("Hack Attack!"); }

// DataBase connection
$hostname = "localhost";
$database = "db_name";
$username = "db_user";
$password = "db_pass";
$link = mysql_pconnect($hostname, $username, $password) or die(mysql_error());
?>
Return current item: MWS - ModularWebSystem