This is a new WTServer (wt-nmp) Project
Feel free to modify / overwrite this file!
Unable to connect to MySql server
$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
php_redis is not enabled.Add in to php.ini:
extension = php_igbinary.dll
extension = php_redis.dll
$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 path: .;d:/nginx/include; Including a global library file:
Success, wtnmpIncludeTest.lib.php included
include "tools/wtnmpIncludeTest.lib.php";