GoWeb Programming PHP website version: PHP-For-Go-Web parses the md file of Go Web programming with php + bootstrap3. Build a local or remote website. Mom no longer needs to worry about my network speed.
Getting md files from https://github.com/astaxie/build-web-application-with-golang/tree/master/zh
PHP parsing class library for retrieving Markdown format data from https://github.com/erusev/parsedown
Use PHP to parse html data
Use Bootstrap to display the final html page
I don't produce code. I am the code Porter! Site: http://go.webiji.com
Install and configure [Apache]
In the httpd. conf configuration file, the mod_rewrite.so module AllowOverride None is loaded. change None to All. Save the following content as a. htaccess file and put it in the same directory as the application entry file.
RewriteEngine on RewriteCond % {REQUEST_FILENAME }! -D RewriteCond % {REQUEST_FILENAME }! -F RewriteRule ^ (. *) $ index. php? File = $1 [QSA, PT, L]
This project is developed and tested under wampserver. We recommend that you use the wampserver environment.
[IIS]
If your server environment supports ISAPI_Rewrite, you can configure the httpd. ini file and add the following content:
RewriteRule (.*)$ /index\.php\?file=$1 [I]
[Nginx]
Configure forwarding rules in Nginx. conf:
Location /{//..... Omit part of the code if (! -E $ request_filename) {rewrite ^ (. *) $/index. php? File = $1 last; break ;}}
If your project is installed in the second-level Directory, set the pseudo-static method of Nginx as follows, where goweb is the directory name.
location /goweb/ { if (!-e $request_filename){ rewrite ^/goweb/(.*)$ /goweb/index.php?file=$1 last; }}
Project homepage:Http://www.open-open.com/lib/view/home/1446558564638