RE: [PHP] Help! What about this method to separate HTML code from PHP code?
| From: | Dave at Sinewaves.net | Date: | Sat, 24 Aug 2002 18:23:14 +0000 |
| Subject: | RE: [PHP] Help! What about this method to separate HTML code from PHP code? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-113962@lists.php.net to get a copy of this message | ||
Yes. Good. :)
<snip>
// <====method====>
//
// I put the HTML code into a file, and use it by "include" or "require".
//
// <---index.html.php--->
//
// <html>
// <body>
// This is a example file!
// </body>
// </html>
//
// <---index.php--->
//
// <?
// include "index.html.php";
// ?>
//
// Can you tell me this method is good?
// If not, please tell me the best method!
// Thank you!!!
</snip>