When opening a php file with localhost/.php file the page appears blank

Asked

Viewed 1,038 times

-5

Xampp is not creating me the local server

  • Welcome to the site. Do you want to make a contact form? Did you install xampp on your machine? Do you know log look?

  • 1

    Create a simple file with content, <?php echo "hello word 2016"; the screen should not be blank. A web page is not accessed by file///c:\ .... only by http://endereco.com

  • Thank you for the welcome. It is a form that dps automatically sends to the email the information presented by the visitor. Yes installed, already changed the Ports and everything. I will create a simple file, and I tell you something

  • Everything keeps coming up blank

  • So the apache module was installed wrong.

  • I have to reinstall?

  • Uninstall, perform a new (clean) installation and test that simple file and come back here to count the result.

  • Here it is not possible by prints? pk already reinstalled and still does not work, but a message appeared to me while installing. 'Cause I’m on a mini local network between computers and Maybe that’s why

  • Put the print there, what the message says?

  • The message says, "Important! Because an Activated User Account Control(UAC) on your system some functions of XAMPP are possibly Restricted.With UAC Please avoid to install XAMPP to C: Program Files(x86)(Missing write Permissions). OR deactivate UAC with msconfig after this setup."

  • Installed as admin?

  • if you run the installer as administrator, the message appears in it

  • Which version of xampp are you using? which version of windows is?

  • xampp 5.6.15 / windows 10

  • thank you already all

  • It worked? It worked?

Show 12 more comments

1 answer

2


When accessing a web server through your browser, check your files by physical path in the address bar, such as: "file:///C:/xampp/htdocs/form_contato.php", will open pure php code. To open it with its encoded features try opening your example by the following url:

http://localhost/form_contato.php
  • 1

    I did as I said and nothing appears to me, a blank page appears

  • Probably your web server is not yet active @Leonoliveira, if it is in windows, look for the system tray and activate the web server (xamp) there.

  • 1

    System tray? refers to open in administrator??

Browser other questions tagged

You are not signed in. Login or sign up in order to post.