| Variable | Project | Sub-project |
|
ROOT_FILESYSTEM_PATH |
/www/above_docroot/php-bootstrap.sergeychernyshev.com | /www/above_docroot/php-bootstrap.sergeychernyshev.com/subproject |
|
ROOT_ABSOLUTE_URL_PATH |
/symlink | /symlink/subproject |
|
ROOT_FULL_URL |
http://php-bootstrap.sergeychernyshev.com/symlink | http://php-bootstrap.sergeychernyshev.com/symlink/subproject |
You can see different application setup configurations below and see the variables that get set.
| Root of the site |
|
|---|---|
| Regular subfolder |
|
| Folder set up using Apache Alias to folder outside of DocumentRoot |
|
| Folder set up using a file system symlink to folder outside of DocumentRoot |
|
| Project on a non-default port |
|
| Support for SSL-hosted version |
|
| Support for SSL-hosted version on a non-default port |
|
| Script calling a command line tool using system call | TODO |
| Script installed on site that uses mod_vhost_alias (tons of bugs with DOCUMENT_ROOT) | TODO |
| $_SERVER['SCRIPT_FILENAME'] | /www/data/php-bootstrap.sergeychernyshev.com/symlink/index.php |
| $_SERVER['SCRIPT_NAME'] | /symlink/index.php |
| $_SERVER['HTTPS'] | n/a |
| $_SERVER['HTTP_HOST'] | php-bootstrap.sergeychernyshev.com |
| $_SERVER['SERVER_PORT'] | 80 |