Help php with xampp

I’m using xampp and i don’t understand why don’t work my site
Imgur
But if i change extension of php to html works but bad
Imgur

In the first photo, you used a URL to the localhost web server. The output you got probably stopped at some point due to a fatal php error. You would need to insure that php’s error_reporting is set to E_ALL and display_errors is set to ON in the php.ini on your system, and then may even need to look at the ‘view source’ of the page in your browser to see any php error messages.

In the second photo, you opened the .html file directly through the file system, so, only the html, css, and javascrpt were rendered by the browser.

A good way to see if everything is running properly on your local server is to have the following statement in a file all by itself.

<?php
echo phpinfo();

I called my file phpinfo.php that way you can see if it is setup properly and the initial settings are displayed. Though you still should have error reporting turned on when you are coding php.


This is my configuration than display errors is on in php.ini. What should i do? thanks

  • make a simple .php file… (nothing more than some simple output to test)

If the phpinfo() output it working… then everything should be good to go.

Sponsor our Newsletter | Privacy Policy | Terms of Service