-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathindex.php
More file actions
24 lines (21 loc) · 865 Bytes
/
index.php
File metadata and controls
24 lines (21 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
// This file is intended to be run from a development environment and simply
// redirects to the [public] directory which would be used as the
// public root directory on a web server.
// 1) Install Dependencies (PHP is required)
// cd {this-directory}
// php ./scripts/install.php
//
// 2) To run from a command line or terminal program using the PHP Built-in Webserver
// you can use the following:
// cd {root-directory}
// php -S localhost:3000 website/public/index.php
//
// This assumes that you have both [dataformsjs] and [website] Repositories
// and are running from the root folder. If running directly from this folder
// then change the path of the router page:
// php -S localhost:3000 public/index.php
//
// 3) Then open your web browser to:
// http://localhost:3000/
header('Location: public/');