Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

489
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!