I'm new to all this but I'm trying to learn php and sql so I downloaded XAMPP and installed it following all the prompts and when I open the default index.php file I get the below result. Any ideas why this isn't working?
- Code: Select all
<?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 :-(
I have both Apache and MySQL as 'Running' with the green background on the XAMPP Control Panel. I have no idea if I was meant to install any extra programs prior to this because I thought that just installing XAMPP would install everything I needed.
My computer is Windows XP SP3 and I'm not sure what else you guys would need to know, but please ask. Once again I'd like to stress that this is my first encounter with php so I'm not really sure what to do as far as installation goes.
Any help would be great.
Cheers
Ash