New WTServer Project

This is a new WTServer (wt-nmp) Project

Feel free to modify / overwrite this file!


MySql Database Connection:

Success, MySql server version 5.5.5-10.1.22-MariaDB

			$conn=new mysqli('p:localhost');
			$conn->set_charset('utf8');
			$conn->select_db('mysql');
		

You don`t need to specify the mysql username/password, they are stored in php.ini, just like on our WTriple Hosting server


Redis Cache / NoSql Connection:

Success, Redis server version 3.2.100

			$redis=new Redis();
			$addr=empty($_SERVER['REDIS']) ? 'localhost' : $_SERVER['REDIS'];
			$redis->connect($addr);
		

This code works both locally and on our WTriple Hosting server; $_SERVER['REDIS'] specifies the Redis unix socket file


Include Test:

Include path: .;c:/wtserver/include; Including a global library file:

Success, wtnmpIncludeTest.lib.php included

			include "tools/wtnmpIncludeTest.lib.php";