Fix slash on windows server
This commit is contained in:
parent
cd16026f31
commit
a63991ad2d
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
$path = rtrim(dirname($_SERVER['PHP_SELF']), '/');
|
||||
$path = rtrim(str_replace('\\','/',dirname($_SERVER['PHP_SELF'])), '/');
|
||||
$url = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $path;
|
||||
?>
|
||||
<!doctype html>
|
||||
|
|
Loading…
Reference in New Issue