New WinNMP Project:

This is a new WinNMP Project
Feel free to modify / overwrite this file!
Read WinNMP Basic Usage - Getting Started

MySql Database Connection:

Warning: mysqli::__construct(): (HY000/2002): 連線嘗試失敗,因為連線對象有一段時間並未正確回應,或是連線建立失敗,因為連線的主機無法回應。 in D:\WinNMP\WWW\adata\index.php on line 18

Unable to connect to MySql server

			$conn=new mysqli('p:localhost');

You don`t need to specify the mysql username/password, they are stored in php.ini. You could allso connect using:

			$DB_USER = '';	//ini_get('mysqli.default_user');
			$DB_PASS = '';		//ini_get('mysqli.default_pw');
			$dbh = new PDO('mysql:host=localhost;dbname=mysql', $DB_USER, $DB_PASS);

Redis Cache / NoSql Connection:

Error while connecting to Redis server

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

Include Test:

Include path: .;d:/winnmp/include; Including a global library file:

Success, wtnmpIncludeTest.lib.php included

			include "tools/wtnmpIncludeTest.lib.php";