Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

490
Visualizações
Localhost blank page PHP

When i open my created Program.php(

<<?php echo "Hello World!" ?>

) file, then the "http://localhost/Program.php" page doesn't show the "Hello World" output. It just shows a blank page.

When i look in the sourcecode of the page, then it shows me

<Hello World!

Also when i run C:\xampp\php\php-cgi.exe C:\xampp\htdocs\Program.php in the command prompt, then it shows me the same output <Hello World!"

When i open the "http://localhost/" then it shows me the welcome page of xampp.

"http://Localhost\phpinfo.php" send back 404 not found.

Please help to fix this issue

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

In Program.php, you have extra < sign in front

<<?php echo "Hello World!" ?>

try:

<?php echo "Hello World!"; ?>

Regarding phpinfo.php

404 genereally means page not found. So make sure that file exists at root of your server.

If your server runs at: /var/www then your file path should be /var/www/phpinfo.php

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda