mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-04-13 09:52:20 +02:00
Added uri function
This commit is contained in:
parent
d1d1e86993
commit
8caf099eaa
@ -10,4 +10,9 @@ function external_file_get_contents($url) {
|
|||||||
$data = curl_exec($ch);
|
$data = curl_exec($ch);
|
||||||
curl_close($ch);
|
curl_close($ch);
|
||||||
return $data;
|
return $data;
|
||||||
|
}
|
||||||
|
|
||||||
|
function uri($path) {
|
||||||
|
$url = str_replace(['http://', 'https://'], '', url(''));
|
||||||
|
return "//" . $url . "/" . $path;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user