Skip to content

Instantly share code, notes, and snippets.

@Tim-Machine
Created June 22, 2013 21:25
Show Gist options
  • Select an option

  • Save Tim-Machine/5842674 to your computer and use it in GitHub Desktop.

Select an option

Save Tim-Machine/5842674 to your computer and use it in GitHub Desktop.
<?php
$webRoot = $_SERVER['DOCUMENT_ROOT']; // root of our web site.
define("DS", DIRECTORY_SEPARATOR ); // this is to account for OS direcorty separator differences
require_once $webroot.DS."this{$DS}is{$DS}a{$DS}path{$DS}to{$DS}a{$DS}folder";
@tjosten
Copy link
Copy Markdown

tjosten commented Jun 22, 2013

Compare $webRoot and $webroot. Typo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment