Reputation: 17
I tried using the link below but due to my lack of web admin skills I need to create a new thread to ask my question.
PHP code is not being executed, instead code shows on the page
Question: I am trying to create a php contacts form for my site; users click on the 'contact' link to open the form. I have placed the .php file in my website folder of my local computer(macbook) - see image attached. However, when I click on the contacts link from my home page, it spits out the code in the browser(similar to the screenshot preview pane) instead of displaying the contacts form.
Is this happening because I have no php engine installed on my mac? Many thanks in advance for your input.
folder structure screenshot on my Mac
Upvotes: 1
Views: 134
Reputation: 922
You must access the file via your local server, like
http://localhost/omw/index.php
Not like
file:///C:/xampp/htdocs/omw/index.php
Upvotes: 1