Fix slash on windows server

This commit is contained in:
Ivan Diaz 2018-07-02 17:32:27 -03:00
parent cd16026f31
commit a63991ad2d
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<?php <?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; $url = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $path;
?> ?>
<!doctype html> <!doctype html>