GithubHelp home page GithubHelp logo

codeiginiter-and-php-built-in-web-server's Introduction

PHP built-in Web server

無論在 Windows/Linux/macOS 等環境中,都可以善用 PHP built-in web server 來進行開發測試

http://php.net/manual/en/features.commandline.webserver.php

Windows

  1. 下載 PHP 7.0,挑個 Thread Safe 即可

  2. 安裝 VC14-x64 相關套件

  3. 在 Windows 環境上執行,如 Desktop

C:\Users\user\Desktop> cd ci-project\web
C:\Users\user\Desktop\ci-project\web>C:\Users\user\Downloads\php-7.0.27-Win32-VC14-x64\php.exe -S localhost:8000 ..\tools\ci-routing.php
PHP 7.0.27 Development Server started at Tue Jan 23 10:11:32 2018
Listening on http://localhost:8000
Document root is C:\Users\user\Desktop\ci-project\web
Press Ctrl-C to quit.
  1. 如此一來,用瀏覽器開啟 localhost:8000 就會看到網頁了,此招數唯一的缺點只剩 DB 位置連不到

codeiginiter-and-php-built-in-web-server's People

Contributors

changyy avatar

Watchers

 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.