One problem with this approach is that the navigation feature of FP2000 cannot be used. In addition, if common borders and logos are setup, these will also not be available in php.
What I have found works better is to create a file with a .HTM extension. This will contain the layout, borders, themes, logos and the navigation bars. Using the technique below as suggested by Peter, enter any php code.
Then create another blank file in FP2000 with the same name as the .htm file but with a .php extension. For example, if the HTM file is myfile.htm, the php file is called myfile.php. The only command in the .php file is "<?php require(myfile.htm);?>".
I hope this to be helpufl.
Further, I do not wish to cause offence to Peter but rather treat this as a development of his idea.
peter wrote:
Here's a solution for ya...
Actually there's two solutions 🙂
Frontpage recognizes ASP tags and PHP can be set to use ASP style tags as well so instead of using <? // code ?> you can use <% // code %>
The other solution which will work quite easily is to wrap a HTML comment around your PHP code:
<!--
<?php
// this is my code
?>
-->
This also works very well and stops frontpage from messing with your code
🙂
visit my site for more php tutorials, examples and the like ... http://alienalchemy.com