Page 1 of 1

problem

PostPosted: 10. November 2014 16:43
by salamander123
<?php
if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
$uri = 'https://';
} else {
$uri = 'http://';
}
$uri .= $_SERVER['HTTP_HOST'];
header('Location: '.$uri.'/xampp/');
exit;
?>
Something is wrong with the XAMPP installation :-(

Re: problem

PostPosted: 10. November 2014 16:54
by Altrea

Re: problem

PostPosted: 10. November 2014 18:33
by Nobbie
salamander123 wrote:Something is wrong with the XAMPP installation :-(


... means in fact: something is wrong with the User, as he does not open PHP files via "http://localhost/...." in browser, but instead via double click in explorer or similar (i.e. open file).