Problem:
basic PHP file rendering as text in browser
.php file is stored in htdocs/test_files
these are test files I’m using to learn PHP using basic commands such as “echo”
Installation:
MAMP. Confirmed servers are working. Can view phpinfo. Apache root is Applications/MAMP/htdocs
Other info:
Also downloaded WordPress files into htdocs. This installation was successful and I can view those files in the browser. Not sure if this is causing some sort of problem.
I’m trying to execute basic PHP code in a Komodo Edit. When I use browser preview nothing happens. When opening the file in a browser the code renders as plain text. The file is stored under htdocs. It appears that the MAMP installation was successful. (lights are green
I’ve watched several tutorials on installing PHP, but nothing seems to cover this issue.