Skip to content

Instantly share code, notes, and snippets.

@mikedfunk
Created January 16, 2012 22:12
Show Gist options
  • Select an option

  • Save mikedfunk/1623321 to your computer and use it in GitHub Desktop.

Select an option

Save mikedfunk/1623321 to your computer and use it in GitHub Desktop.
Relative path
$relative_path = str_replace('//','/',dirname(__FILE__).'/');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment