Bom dia!
Eu instalei o Xampp, coloquei os arquivos na pasta htdocs, tentei o phpinfo(); ou seja, a principio tudo ok, mas as IDEs Dreamweaver CS3, Notepad ++, Netbens o código PHP não é lido, somente HTML.
Depois de tanto pesquisar, achei um teste:
------------------------------------------------------------
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8"/>
<title>Primeiro exemplo PHP</title>
</head>
<body>
<h1>Testando o exemplo index</h1>
<?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 :-(
</body>
</html>
------------------------------------------------------
O Resultado no navegador foi:
Testando o exemplo index
Something is wrong with the XAMPP installation :-(
-------------------------------------------------------
Logo, o que devo fazer?
(Se for mesmo um problema de instalação, informo que baixei do site oficial do Apache).
Alguém pode me ajudar?
Abraço!