您好,欢迎访问一九零五行业门户网

《Go Web 编程》PHP网站版:PHP-For-Go-Web

php-for-go-web 是用 php+bootstrap3 来解析《go web 编程》的 md 文件。构建本地或者远程网站。妈妈再也不用担心我的网速了。
从https://github.com/astaxie/build-web-application-with-golang/tree/master/zh 获取md文件
从https://github.com/erusev/parsedown 获取 markdown 格式数据的 php 解析类库
使用 php 解析得到 html 数据
使用 bootstrap 显示最终的html页面
我不生产代码,我是代码的搬运工!展示站点:http://go.webiji.com
安装配置 [ apache ] httpd.conf配置文件中加载了mod_rewrite.so模块allowoverride none 将none改为 all把下面的内容保存为.htaccess文件放到应用入口文件的同级目录下 rewriteengine on rewritecond %{request_filename} !-d rewritecond %{request_filename} !-f rewriterule ^(.*)$ index.php?file=$1 [qsa,pt,l]
本项目在wampserver下开发并且通过测试。建议使用wampserver环境。
[ iis ] 如果你的服务器环境支持isapi_rewrite的话,可以配置httpd.ini文件,添加下面的内容:
rewriterule (.*)$ /index\.php\?file=$1 [i]
[ nginx ] 通过在nginx.conf中配置转发规则实现:
location / { // …..省略部分代码 if (!-e $request_filename) { rewrite ^(.*)$ /index.php?file=$1 last; break; } }
如果你的项目安装在二级目录,nginx的伪静态方法设置如下,其中goweb是所在的目录名称。
location /goweb/ { if (!-e $request_filename){ rewrite ^/goweb/(.*)$ /goweb/index.php?file=$1 last; }}
项目主页:http://www.open-open.com/lib/view/home/1446558564638
其它类似信息

推荐信息