Something is wrong with the xxamp installation?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Something is wrong with the xxamp installation?

Postby TheMidnightWar » 12. January 2018 20:58

I got this when i opened my index.php in htdocs
Something is wrong with the XAMPP installation :-(

is it suppose to look like this
<?php
if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
$uri = 'https://';
} else {
$uri = 'http://';
}
$uri .= $_SERVER['HTTP_HOST'];
header('Location: '.$uri.'/dashboard/');
exit;
?>
Something is wrong with the XAMPP installation :-(
TheMidnightWar
 
Posts: 4
Joined: 10. January 2018 00:57
XAMPP version: 3.3.0
Operating System: Windows 10

Re: Something is wrong with the xxamp installation?

Postby Altrea » 12. January 2018 22:02

Yes
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 9084
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Something is wrong with the xxamp installation?

Postby Nobbie » 12. January 2018 22:12

TheMidnightWar wrote:I got this when i opened my index.php in htdocs


And how did you do this? Am i right, you simply double clicked index.php in your explorer? If "yes", it is totally wrong. Instead enter "http://localhost" into your browser and see, what happens.
Nobbie
 
Posts: 10074
Joined: 09. March 2008 13:04

Re: Something is wrong with the xxamp installation?

Postby TheMidnightWar » 12. January 2018 23:01

I opened the file with notepad++.
TheMidnightWar
 
Posts: 4
Joined: 10. January 2018 00:57
XAMPP version: 3.3.0
Operating System: Windows 10

Re: Something is wrong with the xxamp installation?

Postby TheMidnightWar » 12. January 2018 23:02

Nobbie wrote:
TheMidnightWar wrote:I got this when i opened my index.php in htdocs


And how did you do this? Am i right, you simply double clicked index.php in your explorer? If "yes", it is totally wrong. Instead enter "http://localhost" into your browser and see, what happens.


http://localhost/dashboard/
Brings me to welcome XXAMP.
TheMidnightWar
 
Posts: 4
Joined: 10. January 2018 00:57
XAMPP version: 3.3.0
Operating System: Windows 10

Re: Something is wrong with the xxamp installation?

Postby Nobbie » 13. January 2018 00:34

Perfectly fine.
Nobbie
 
Posts: 10074
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 46 guests