Skip to content Skip to sidebar Skip to footer

Why Is This Php Code Showing Up As Regular Text (html)?

I've been staring at this for almost an hour and as a last resort I was hoping some of you guys might give me a hand figuring out this php code is showing up as regular text in my

Solution 1:

I really only see two possibilities:

a) You are not running it on a server, but on your local PC. If that is the case and you don't have acces to websapce, look at WAMP (windows) or MAMP (Mac)

b) You have a .html-file-extension instead of .php

If it's neither of these, give us more information about where you're runnng the script, how it's saved and everything. Php should never show up as plain text because of an error inside the php - merley because of errors surrounding the php.

Solution 2:

First off, jsfiddle will not run PHP.

Second, it sounds like your PHP server is not configured properly.

Solution 3:

If this is in a .html file, you need to configure your webserver to run html through PHP.

If you're expecting JSFiddle to run your PHP, they do not do that.

Post a Comment for "Why Is This Php Code Showing Up As Regular Text (html)?"