/    Sign up×
Community /Pin to ProfileBookmark

Hello. When php is being parsed in a HTML template or document does it generally mean PHP being used within it?

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@SyCoAug 22.2008 — PHP is parsed (or executed) at run time by the webserver. PHP can parse HTML but HTML can't parse PHP. If it's an HTML template it's possible it was created in a PHP script.

HTML templates often use things like BBcode to parse the input (eg POST or file) and changed it eg ; ) to a wink emoticon image or something. PHP parsed the input, chaged the wink text into HTML calling on the image.

A file ending in .PHP would usually have PHP code in it but it doesn't have to but it could. A .htm file cannot execute php (well there is a few tricks with javascript but basically that's the way it is).

I hope that helps to clear it up and I've not confused the hell out of you ?
×

Success!

Help @Javajoob spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...