Re: Make Frontpage generate PHP/MySQL query?

From: Thomas A. Rowe (tarowe_at_mvps.org)
Date: 10/12/04


Date: Tue, 12 Oct 2004 16:13:29 -0400

Chris, you can not run PHP scripts on a ASP, as the ASP dll doesn't know how to handle PHP coding
unless you want to the page to run access both the ASP and PHP dlls.

-- 
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
"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.
>
> --
> Chris Leeds,
> Microsoft MVP-FrontPage
>
> Make More Money with Less Work
> Let Your Clients Control Their Content With Just A Browser!
> http://contentseed.com/
> --
> "Don" <Don@cccccccccc.com> wrote in message
> news:#xYh4MIsEHA.556@tk2msftngp13.phx.gbl...
> > Hi Chris,
> >
> > The link I gave was to an excerpt from Jim Buyens Book "FrontPage 2003
> > Insideout"..
> > http://office.microsoft.com/en-us/assistance/HA011092991033.aspx
> >
> > Half way down the page is..
> >
> > "Change settings in FrontPage 2003
> > Before you can use PHP with FrontPage 2003, you must make the following
> > changes to settings in FrontPage: "
> >
> > So maybe Jim Buyens can shed some light on the subject?
> >
> > Just a thought
> >
> > Don
> > ====================
> > "Chris Leeds, MVP-FrontPage" <Leeds@mvps.org> wrote in message
> > news:eetIBcGsEHA.2196@TK2MSFTNGP15.phx.gbl...
> > | I've tried the same thing, sort of.  I've even switched the typical <?
> to
> > | <script language="php"> and </script> to no avail also.
> > |
> > | maybe it is just a theoretical thing that people "say" but nobody has
> ever
> > | done.
> > |
> > | --
> > | Chris Leeds,
> > | Microsoft MVP-FrontPage
> > |
> > | Make More Money with Less Work
> > | Let Your Clients Control Their Content With Just A Browser!
> > | http://contentseed.com/
> > | --
> > | "Ronx" <ronx917@hotmail.com> wrote in message
> > | news:OilsurFsEHA.2096@TK2MSFTNGP11.phx.gbl...
> > | > Chris,
> > | >
> > | > The syntax is
> > | > <% @ Language=Perlscript %>
> > | >
> > | > to use Perl as the asp scripting language.
> > | >
> > | > My server runs PHP pages, but does not recognise PHP as a scripting
> > | language
> > | > when used in ASP pages.  I also have not been able to find the how for
> > | PHP.
> > | > I checked the PHP documentation at www.php.net  (which uses Google for
> > | > searches).
> > | >
> > | > --
> > | > Ron Symonds   (Microsoft MVP - FrontPage)
> > | >
> > | > Reply only to group - emails will be deleted unread.
> > | > "Chris Leeds, MVP-FrontPage" <Leeds@mvps.org> wrote in message
> > | > news:%23xpK7WFsEHA.3076@TK2MSFTNGP10.phx.gbl...
> > | > > Thanks in advance Ronx,
> > | > > I've googled a little and found no mention of exactly HOW, but lots
> of
> > | > > comments that you COULD.  Figured it was the usual "scholarly"
> > | > > proclamations
> > | > > without any real-world practice to back it up. ;-)
> > | > >
> > | > > --
> > | > > Chris Leeds,
> > | > > Microsoft MVP-FrontPage
> > | > >
> > | > > Make More Money with Less Work
> > | > > Let Your Clients Control Their Content With Just A Browser!
> > | > > http://contentseed.com/
> > | > > --
> > | > > "Ronx" <ronx917@hotmail.com> wrote in message
> > | > > news:eXYxiKFsEHA.736@tk2msftngp13.phx.gbl...
> > | > >> The books are right.
> > | > >>
> > | > >> I don't recall the exact details, but the first line on the page
> > should
> > | > >> be
> > | > >> something like
> > | > >>
> > | > >> @language=PHP
> > | > >>
> > | > >> I'll see what I can find.
> > | > >>
> > | > >> --
> > | > >> Ron Symonds   (Microsoft MVP - FrontPage)
> > | > >>
> > | > >> Reply only to group - emails will be deleted unread.
> > | > >>
> > | > >> "Chris Leeds, MVP-FrontPage" <Leeds@mvps.org> wrote in message
> > | > >> news:e7Ku3$EsEHA.3080@TK2MSFTNGP15.phx.gbl...
> > | > >> > Ronx,
> > | > >> > Maybe you know this;
> > | > >> > I've seen in books and on the net where they say ".asp isn't a
> > | > > programming
> > | > >> > language but a platform, you can use vbscript, jscript...." some
> go
> > | on
> > | > > to
> > | > >> > say you could even use php code on an .asp page.
> > | > >> >
> > | > >> > I've seen the "you could even use php on an .asp page" several
> > times
> > | > >> > but
> > | > >> > none of these places say HOW.
> > | > >> >
> > | > >> > Does anyone know HOW this might be done?
> > | > >> >
> > | > >> > TIA
> > | > >> >
> > | > >> > --
> > | > >> > Chris Leeds,
> > | > >> > Microsoft MVP-FrontPage
> > | > >> >
> > | > >> > Make More Money with Less Work
> > | > >> > Let Your Clients Control Their Content With Just A Browser!
> > | > >> > http://contentseed.com/
> > | > >> > --
> > | > >> > "Ronx" <ronx917@hotmail.com> wrote in message
> > | > >> > news:OMn6T1CsEHA.2904@TK2MSFTNGP15.phx.gbl...
> > | > >> >> The PHP interpreter's .ini file can be set to use ASP tags, as
> > well
> > | as
> > | > >> >> the
> > | > >> >> native <? tags.  Of course, the set up has to be done on the
> > server.
> > | > >> >>
> > | > >> >> --
> > | > >> >> Ron Symonds   (Microsoft MVP - FrontPage)
> > | > >> >>
> > | > >> >> Reply only to group - emails will be deleted unread.
> > | > >> >> "David Baxter" <spam-me@junkmail.com> wrote in message
> > | > >> >> news:OHaT3wAsEHA.416@TK2MSFTNGP10.phx.gbl...
> > | > >> >> > Question: when using those "ASP-like tags", what does that do
> to
> > | the
> > | > >> >> > php
> > | > >> >> > interpreter? why doesn't it confuse it?
> > | > >> >> >
> > | > >> >> > "Don" <Don@cccccccccc.com> wrote in message
> > | > >> >> > news:%23kjIeHAsEHA.3520@TK2MSFTNGP11.phx.gbl...
> > | > >> >> >> You Might have already looked at this but I thought I would
> > give
> > | > >> >> >> you
> > | > >> >> > the
> > | > >> >> >> link...
> > | > >> >> >>
> > http://office.microsoft.com/en-us/assistance/HA011092991033.aspx
> > | > >> >> >>
> > | > >> >> >> Helpful hints like.....
> > | > >> >> >>
> > | > >> >> >> Use ASP-like <% and %> tags instead of the <? php?> tags.
> This
> > | > >> >> >> stops
> > | > >> >> >> FrontPage from reformatting your PHP code.
> > | > >> >> >>
> > | > >> >> >> HTH
> > | > >> >> >>
> > | > >> >> >> Don
> > | > >> >> >> ==================
> > | > >> >> >> "jolness" <jolness@hotmail.com> wrote in message
> > | > >> >> >> news:21c401c4afff$6f790560$a501280a@phx.gbl...
> > | > >> >> >> | I'm trying to use Frontpage to automatically generate PHP
> > | > >> >> >> | scripts that will enable me to access a MySQL database.
> > | > >> >> >> | Is there an easy way to do that, or must I write the PHP
> > | > >> >> >> | code by hand?
> > | > >> >> >>
> > | > >> >> >>
> > | > >> >> >
> > | > >> >> >
> > | > >> >>
> > | > >> >>
> > | > >> >
> > | > >> >
> > | > >>
> > | > >>
> > | > >
> > | > >
> > | >
> > | >
> > |
> > |
> >
> >
>
>


Relevant Pages

  • Re: PHP tag coloring
    ... > have to processed twice (once by the ASP engine and then the PHP engine) ... > server-side scripting technology. ... > Even with ASP and ASP.net it is not a good idea to mix the two, ... > FrontPage Resources, WebCircle, MS KB Quick Links, etc. ...
    (microsoft.public.frontpage.client)
  • Re: PHP/HTML/FP question
    ... I found a real nice .asp editor that's got a way cheaper license ... than the php one im using. ... I'm actually thinking of making an asp version. ... Microsoft MVP FrontPage ...
    (microsoft.public.frontpage.client)
  • Re: PHP tag coloring
    ... to look at what the PHP script was doing, and then re-write the same functionality using VBScript. ... Even with ASP and ASP.net it is not a good idea to mix the two, ... FrontPage Resources, WebCircle, MS KB Quick Links, etc. ... that lots of different languages could be used ...
    (microsoft.public.frontpage.client)
  • Re: Slightly OT; Opinions on Forum type software
    ... you tawked me into it...and so far i like the webwiz one. ... | asp to an access db is the easiest with FrontPage since you won't have to ... asp is just easier on my brain than php and FrontPage gets ...
    (microsoft.public.frontpage.client)
  • Re: PHP tag coloring
    ... so do you think the book is wrong about being able to run php on an asp ... do you know of an easy way to "convert" php scripting to one of the more ... > FrontPage Resources, WebCircle, MS KB Quick Links, etc. ... that lots of different languages could be used ...
    (microsoft.public.frontpage.client)

Loading