PHP website: PHP-For-Go-Web-php Tutorial

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.