Re: Make Frontpage generate PHP/MySQL query?

From: Chris Leeds, MVP-FrontPage (Leeds_at_mvps.org)
Date: 10/12/04


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.
>
>


Relevant Pages

  • Re: php?
    ... Also does this mean i can run php on the subsites while not affecting the ... When you use PHP with FrontPage 2003, you create the overall Web page design ... If you do not administer your own Web server, ... Disable features that require the FrontPage Server Extensions ...
    (microsoft.public.windows.server.sbs)
  • Re: PHP/HTML/FP question
    ... but unless the user has access to IIS MMC directly on the server that will be hosting ... have PHP installed. ... FrontPage Resources, WebCircle, MS KB Quick Links, etc. ... > process .htm or .htm or any other page past the PHP engine! ...
    (microsoft.public.frontpage.client)
  • Re: Make Frontpage generate PHP/MySQL query?
    ... IMHO never mix 2 server side "processors" ... How will each know how to start (which file extension will you use .php or .asp) ... Switching will probably end your session in ASP ... To find the best Newsgroup for FrontPage support see: ...
    (microsoft.public.frontpage.client)
  • Re: How do you include a php file?
    ... Why do you need php for FrontPage to author against a UNIX server?? ... > Microsoft MVP FrontPage ...
    (microsoft.public.frontpage.client)
  • Re: OSCommerce. PHP and FrontPage
    ... IMHO the thing FrontPage resists most about PHP is simply the extension ... which is little reason not to use php in conjunction with FrontPage ... > to me that a FP upgrade will handle php with a little ... >> AND Blow Your Clients Minds! ...
    (microsoft.public.frontpage.client)