Re: Make Frontpage generate PHP/MySQL query?
From: Chris Leeds, MVP-FrontPage (Leeds_at_mvps.org)
Date: 10/12/04
- Next message: Chris Leeds, MVP-FrontPage: "Re: Make Frontpage generate PHP/MySQL query?"
- Previous message: Chris Leeds, MVP-FrontPage: "Re: Make Frontpage generate PHP/MySQL query?"
- In reply to: Jack Brewster: "Re: Make Frontpage generate PHP/MySQL query?"
- Next in thread: Thomas A. Rowe: "Re: Make Frontpage generate PHP/MySQL query?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 12 Oct 2004 17:33:09 -0400
I'm really not an advocate of it. I much prefer to keep FrontPage in the
dark and simply process the php on htm/html files. using either the
<script> </script> method or just the <? ?>, depending on how much script is
there, what it's doing, and what version of FrontPage it's expected to work
on.
-- Chris Leeds, Microsoft MVP-FrontPage Make More Money with Less Work Let Your Clients Control Their Content With Just A Browser! http://contentseed.com/ -- "Jack Brewster" <jack@removethis.andthis.mvps.org> wrote in message news:u68AvSJsEHA.2948@TK2MSFTNGP11.phx.gbl... > There are some downsides to using the ASP-style, or "short form" tags with > PHP. > http://us2.php.net/basic-syntax > > - A default installation of PHP does not enable this option by default. The > PHP configuration must be updated by the server admin. > - Some ISPs don't/don't want to support them. Check before you host! > - Your code is less portable, meaning that if you move your code from a > server that supports short-form tags to a server that doesn't, you'll have > big problems (Again, check before you sign up with that new host.) > > My preference is to use the default long-form tag style and edit PHP in an > external editor (I use TopStyle). I realize this technique doesn't work for > everyone, but it's a good fall back if you can't change servers. > > -- > Jack Brewster > FrontPage MVP > www.maxgeek.com > > "Chris Leeds, MVP-FrontPage" <Leeds@mvps.org> wrote in message > news:uB8c8xIsEHA.3324@TK2MSFTNGP15.phx.gbl... > > nah, that's just a way to make FrontPage not freak out about the <? tags. > > I'm wondering about running php on an .asp page. > > > > btw, <? ?> shows as a script block just like <% %> does in design view of > > FrontPage 2003. I think another good way to get FrontPage not to freak > > out > > with php is not using the <? ?> at all and just surrounding the code with > > <script language="php"> </script>. > > but to keep FrontPage functionality I like to just set the server to > > process > > php code on an htm/html page. I have instructions on how to do this here: > > http://contentseed.com/help/files/PHP_as_HTM-HTML.pdf > > it's amazing how everything in FrontPage "stays normal" and you can use > > any > > FrontPage component such as include page, nav bars, etc. which you can't > > do > > if the page has a .php extension. > >
- Next message: Chris Leeds, MVP-FrontPage: "Re: Make Frontpage generate PHP/MySQL query?"
- Previous message: Chris Leeds, MVP-FrontPage: "Re: Make Frontpage generate PHP/MySQL query?"
- In reply to: Jack Brewster: "Re: Make Frontpage generate PHP/MySQL query?"
- Next in thread: Thomas A. Rowe: "Re: Make Frontpage generate PHP/MySQL query?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|