Re: PHP code in .html file
Quote:
Originally posted by VBSpike
Is there a way to add a php code inside the html file (and save that file with .html extension rather than .php). My boss doesn't want .php files (which is what I have now) so he asked me to find a way to change it to .html. But honestly I don't even know how to do it.
I'm looking for something like this:
<html>
<head>
<title>STUPID TITLE</title>
</head>
<body>
SOME TEXT IMAGES, TABLES GO HERE
and then I want to add php formatted table with some data from the text file
<?php MYPHPCODEHERE ?>
</body>
</html>
I tried the above but don't seem to make it work (I'm getting the code itself displayed rather than the table that should appear)
Thanks
Spike
If he can deal with .shtml files, you can probably do what you want with php in cgi and call it in the file?