Is it possible to include a php script in an html page? If so, what's the command to include it?
Php Question
Collapse
X
-
-
-
YES.
Change yourpage.html to yourpage.php and add the script.
It's that easy.SIG 4 SALE! $2 A YEAR!Comment
-
I'm no developer, but I know we do this quite frequently for tracking code insertion. I just asked our developer for a brief rundown:
<TonyMontana> off topic
<TonyMontana> what's the preferred way to embed php in html?
<TonyMontana> whilst keeping the .html extension
<geek> use .htaccess or configure httpd.conf to parse .html as php,
<geek> and the embed part
<geek> <body><?php // phpstuff to do whatever ?></body>
I hope this helps.Comment

Comment