To get your system ready you need to add webserver and PHP/MySQL capabilities to your system. You can do this by hand, or install a handy package like Apache Friends’ XAMPP.
After installing XAMPP and running it, you need to go through these last steps.
1. Go to http://localhost/phpmyadmin and create a database; name it MouselabWEB for example.
2. Open mlwebdb.inc.php in a text editor and change the values there in the appropriate ones. In most cases—xampp default settings have no password on the database, which might be a security issue on your local network— the values will be:
$DBhost = "localhost";
$DBuser = "root";
$DBpass = "";
$DBName = "MouselabWEB";
$table = "mlweb";
3. Run create_table.php on the server to create a table in the database based on the settings in mlwebdb_inc.php. This would for example be
http://localhost/[yourfoldername]/create_table.php
This script creates a table named in line: $table = "mlweb";
You could use differently named tables within the same database for different sets of experiments (which would have different subfolders, each with their own mlwebdb.inc.php
4. Once the table is created you are set. Any mouselabweb php file you generate with the Designer can be copied to the current experiment folder and will automatically save the data into the database in the table you just created.
第一步中的 create a database 究竟怎么操作呀?
After installing XAMPP and running it, you need to go through these last steps.
1. Go to http://localhost/phpmyadmin and create a database; name it MouselabWEB for example.
2. Open mlwebdb.inc.php in a text editor and change the values there in the appropriate ones. In most cases—xampp default settings have no password on the database, which might be a security issue on your local network— the values will be:
$DBhost = "localhost";
$DBuser = "root";
$DBpass = "";
$DBName = "MouselabWEB";
$table = "mlweb";
3. Run create_table.php on the server to create a table in the database based on the settings in mlwebdb_inc.php. This would for example be
http://localhost/[yourfoldername]/create_table.php
This script creates a table named in line: $table = "mlweb";
You could use differently named tables within the same database for different sets of experiments (which would have different subfolders, each with their own mlwebdb.inc.php
4. Once the table is created you are set. Any mouselabweb php file you generate with the Designer can be copied to the current experiment folder and will automatically save the data into the database in the table you just created.
第一步中的 create a database 究竟怎么操作呀?
$DBuser = "root";
$DBpass = "";
$DBName = "MouselabWEB";
$table = "mlweb";下载并安装一个集成环境 XAMPP
集成环境中都有 phpmyadmin
运行后在里面创建一个名为 MouselabWEB 的数据库
可否解释一下“运行后在里面创建一个名为 MouselabWEB 的数据库”具体是怎么操作呢?谢谢~