Skip to content

Commit 8caf099

Browse files
committed
Added uri function
1 parent d1d1e86 commit 8caf099

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/Functions/externalfiles.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,9 @@ function external_file_get_contents($url) {
1010
$data = curl_exec($ch);
1111
curl_close($ch);
1212
return $data;
13+
}
14+
15+
function uri($path) {
16+
$url = str_replace(['http://', 'https://'], '', url(''));
17+
return "//" . $url . "/" . $path;
1318
}

0 commit comments

Comments
 (0)