The source code of Red Room Card Mahjong supports Android + IOS, the source code includes server + client + background complete source code download and installation tutorial

The source code of Red Room Card Mahjong supports Android + IOS, the source code includes server + client + background complete source code download and installation tutorial

1. Build Apache server

   (1) Very simple, just install the Apache program. After the installation is complete, enter http://localhost in the browser, if you can see the "It works!" page, OK, success!

   (2) Then configure the Apache server and open the http.conf file

   Find DocumentRoot "C:/program File/Apache Group/Apache2/htdocs" and <Directory "C:/program File/Apache Group/Apache2/htdocs">, and change these two places to your own website home directory, for example: C:/web

 

2. Install the PHP environment

  (1) Unzip it, and then put the unzip package in a directory, such as C:\php5

  (2) Rename the php.ini-dist or php.ini.recommended file in the php5 directory to php.ini and copy it to the C\windows directory

  (3) Copy php5ts.dll and libmysql.dll in the php5 directory to C:\windows\system32, and then copy the three files php_gd2.dll, php_mysql.dll and php_mbstring.dll in the php5\ext directory to C :\windows\system32.

 

3. Configure the php environment

 (1) Find the php.ini file in the Windows directory, open Notepad, and look for the following strings: extension=php_gd2.dll, extension=php_mysql.dll and extension=php_mbstring.dll Remove the ";" in front of these three items. Make php support image processing, Mysql library and wide characters.

 (2) Find the short_open_tag tag, set the value to On, so that php supports the "<?" short tag

 (3) If php is not allowed to automatically register externally submitted data as global variables, find register_globals and set the value to Off

 (4) If you need php to control file upload information, find the three parameters of file_uploads, upload_tmp_dir and upload_max_filesize to set.

 

4. Install the mysql environment

  Simple, fool installation can be. Note that the standard installation is selected later because the password needs to be customized. After the installation is complete, you can test: Start|Programs|mysql|mysql server 5.0|mysql command line client, if prompted to enter a password, the installation is successful.

 

5, PHP, Mysql and Apache to establish association

 (1) Set up Apache to support web pages

 open http.conf

 Find #LoadModule foo_module modules/mod_foo.so and add a line after

 LoadModule php5_module c:/php5/php5apache2_2.dll

 Find a line after AddType application/x-gzip.gz .tgz

 AddType application/x-httpd-php .php

 Find DirectoryIndex index.html index.html.var and modify the code to

 DirectoryIndex index.html index.html.var index.php

 After that, restart Apache, create an index.php document, and put it in C:\web

 <?php

   phpinfo();

 ?>

 If you see the phpinfo page, OK, success!

 

6. To test the Mysql database, you can create a page:

The source code of Red Room Card Mahjong supports Android + IOS, the source code includes the server + client + background complete set of source code download and installation tutorial download address http://hxforum.com/thread-320-1-2.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325516735&siteId=291194637