HTML not running PHP in FireFox
I have a basic code in PHP (Test.php):
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); echo ("Hello world!"); error_reporting(E_ALL); ?>
It is called by an HTML file:
<DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="HTML/Adventures/mystyle.css"> </head> <body> <form action="Test.php"> <center><h1>LOGIN SCREEN</h1></center> <input type="submit"> </form> </body> </html>
- When I run it directly through localhost, I get "Hello World"
- When I run the HTML through IE browser, I get "Hello World"
- But, when I run the HTML through FireFox, I get a blank screen. Can you please direct me to a setting that I can either embed into my code or into the Apache conf file that will correct this. I don't want Firefox user to be excluded from my site..
If a script outputs in one browser and doesn't then it is definitely HTML or Browser side issue of non compatibility because script doesn't bothers which browser you are using. So just take PHP out of the equation here and focus on HTML and Browser.
Also check Test.php directly in Firefox. Because the previous page has nothing to do with this.
That way you remove different angles and close in onto the real issue.
Most probably it is browser issue.
Click on Inspect Element and check errors that browser outputs (if any)