Calculate the relative path of a given absolute URL
public static calculate_relative_path ( $file, $returnDir = false ) : string | ||
$file | string The file to calculate the relative path of | |
$returnDir | bool If set to true, only return the dirname | |
return | string |