Coder Social home page Coder Social logo

liyazhou / php-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jaykizhou/php-server

0.0 2.0 0.0 441 KB

一个简单的web服务器,支持php,详细介绍:http://www.jianshu.com/p/31f61470a325

Makefile 0.14% C 96.55% HTML 1.45% PHP 1.85%

php-server's Introduction

###介绍 C语言实现的一个简单web服务器,只支持GET和POST请求,支持php

###运行方法 在代码目录下执行make,然后执行可执行文件zo,默认端口为8000

###运行效果 1.运行test目录下的test.html静态页面:

打开浏览器运行结果:

2.运行test目录下的test.php动态页面:

打开浏览器运行结果:

3.运行test目录下的upload.html,该页面包含文件上传,由test_upload.php处理:

上传的文件data.txt内容为:

打开浏览器运行结果:

4.试试运行codeigniter框架。

下载ci框架到程序所在目录的ci子目录中。

修改默认Welcome.php控制器文件内容:

打开codeigniter框架默认文件index.php:

运行welcome控制器的test方法:

php-server's People

Contributors

jaykizhou avatar

Watchers

James Cloos avatar LiYazhou avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.