Added uri function

This commit is contained in:
Julian Prieber 2023-05-25 18:00:00 +02:00
parent d1d1e86993
commit 8caf099eaa
1 changed files with 5 additions and 0 deletions

View File

@ -10,4 +10,9 @@ function external_file_get_contents($url) {
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
function uri($path) {
$url = str_replace(['http://', 'https://'], '', url(''));
return "//" . $url . "/" . $path;
}