Front Page or last page news?
I'm kind of lazy when it comes to editing HTML. I'd rather use an HTML editor like Front Page then hack the HTML portions out with notepad. The following are some common problems (and in some cases solutions) I've discovered about inserting PHP code within pages that you are going to edit with Front Page.
1. Use <script language="php"> instead of the
<? or <?php as your starting tag. Use </script> instead of ?> as your
ending tag. If you don't then Front Page will try to reformat your code.
2. You can add PHP code by using the INSERT ---> ADVANCED ---> OTHER (fill in
"php") and then cut and pasting your code into the text box.
3. Save your phtml or php pages as html and open with the Front Page editor. Now
view the source and see what FP did to your code. This will give you an idea as to what
Front Page likes to "change".
4. Body tag changes using PHP are a major conflict with Front Page editor. For
example we change the body tag dynamically with these diary changes. I have not found a
good workaround for doing this with Front Page. If you have found one then tell me about
it please.
5. If you have small sections of HTML to edit in your code, use a different editor
than Front Page or edit them within the code editor you are using.
Please vote on the usefulness of this diary entry so other people will know if it is worth their time to read :)
PHP Diary | scriptschool.com | PHP Scripts | TD Scripts.com
Copyright 2000 php-scripts.com Last Modified 07/12/00 01:02