Created
December 24, 2010 20:32
-
-
Save atinypixel/754491 to your computer and use it in GitHub Desktop.
Function for building paths
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function get_path($wildcard="", $remote=false) { | |
$path = $remote ? "http://".$_SERVER['HTTP_HOST'] : $_SERVER['DOCUMENT_ROOT']; | |
if($wildcard != "") | |
$path .= "/".$wildcard."/"; | |
return $path; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment