Just rename the html file to php (Remember to make all " (doublequotes) to ' (singlequote),in that page ) and include the php script you want.. hope that helps..
Looks like you don't very much about PHP, so your question is a bit confusing. You can embed PHP code onto any file with a .php or .phtml extension with the opening and closing tags <?php //code here ?> Code (markup): Alternatively, you can import another PHP script into your page using the following code: <?php include("file.php"); ?> Code (markup): Since PHP files can contain HTML and PHP, and PHP is only parsed within the opening and closing tags, I recommend you make the page index.php instead of index.html, that way, you can embed php.
Thanks, I know a little php, and I tried some other stuff but it didn't work at all, the page would come up blank and stuff. this helped thanks
Sir, Its very easy to put a php code in html page, you will not need to rename your page to another extension. To learn how to put php code in html page. To learn how to insert it between tags.
you could also use .htaccess to make any html pages use the php engine, ill google around and post again
here, use this: www[dot]desilva[dot]biz/php/phpinhtml.html this may come in hand also: forums[dot]digitalpoint[dot]com/showthread.php?t=5801
this would be a good way i have a php file that creats an image of text i just use htaccess to rename image.php to image.jpg then u can use it in html pages this should work for other php files