Firefox is not interpreting PHP code at all.
I have already tried activating PHP via terminal (I am on a mac). I have tried a total of 5 different browsers. Chrome, Brave, and Opera simply downloads the PHP file, Safari is weird about FTP and Firefox has the problem explained below. I have tried replacing all instances of ">" with >. All files have a .php extension and are in the same folder.
Viewing a simple PHP file on an FTP server, Firefox either displays a blank page with PHP code such as:
<?php
echo "Hello World!";
?>
or stops at the greater than sign (>) in code such as:
<?php
echo "<P>Hello World!</P>";
?>
In the above instance, the browser displays, in plain text:
Hello World!
"; ?>
This is not the code I am using, obviously, but my more complex code is having the same problem - namely not working at all or stopping at the greater than sign.
Any help would be greatly appreciated. Full Disclosure: I am very much a beginner at this.