在本地卸载wordpress后,php文件无法在mamp中运行

I am having problems with php executing in mamp. Html is working fine, but php is showing up as text.

I did have php files working fine so I know it isn’t the code.

I installed wordpress locally, created a database but then decided I wanted to revert back to php files.

I deleted the database I created in php my admin, and deleted the wordpress files in htdocs.

However, now my originally php files do not work in localhost.

When I go to localhost, the page I created in wordpress appears - I have cleared my cache.

I also deleted mamp, and reinstalled it - but have the same problem.

I also downloaded XAMP – and php files do not work either.

I am not very experienced with server issues, I cannot figure out what I have done wrong and it is very frustrating.

I am working on mac.

Would welcome any suggestions!

Thanks

Your scripts work, but are showing up as text..Are you sure that PHP is added after < ?. just double check that