Skip to content

Instantly share code, notes, and snippets.

@heyost
Created September 17, 2016 03:02
Show Gist options
  • Save heyost/ab95bbe05228990b3d100c8e9625479b to your computer and use it in GitHub Desktop.
Save heyost/ab95bbe05228990b3d100c8e9625479b to your computer and use it in GitHub Desktop.
simple php server, like "php artisan serve"
#!/bin/bash
# simple php server, like "php artisan serve"
# put this file 1 folder behind root directory
# e.g. this file on folder "project"
# and inside "project" folder have 1 folder contain codeigniter project,
# so root folder is name of folder with contain project
echo "Type root directory, followed by [ENTER]:"
read root
php -S 0.0.0.0:8000 -t $root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment