They are both server side "processors"
IMHO never mix 2 server side "processors"
- work in one or the other in a page (better still a site)
How will each talk to the other server side
How will each know how to start (which file extension will you use .php or .asp)
Switching will probably end your session in ASP
| I do not want that. ;-)
|
| I would like to have an .asp file read the output of a php script and then
| write that into the page. I wonder if that's possible?
|
| --
| Chris Leeds,
| Microsoft MVP-FrontPage
|
| Make More Money with Less Work
| Let Your Clients Control Their Content With Just A Browser!
|
http://contentseed.com/
| --
| | > 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)
| >
| > 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
| >
| > | > > 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/
| > > --
| > > | > > > 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
| > > > ====================
| > > > | > > > | 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/
| > > > | --
| > > > | | > > > | > 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.
| > > > | > | > > > | > > 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/
| > > > | > > --
| > > > | > > | > > > | > >> 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.
| > > > | > >>
| > > > | > >> | > > > | > >> > 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/
| > > > | > >> > --
| > > > | > >> > | > > > | > >> >> 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.
| > > > | > >> >> | > > > | > >> >> > Question: when using those "ASP-like tags", what does that
| do
| > > to
| > > > | the
| > > > | > >> >> > php
| > > > | > >> >> > interpreter? why doesn't it confuse it?
| > > > | > >> >> >
| > > > | > >> >> > | > > > | > >> >> >> 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
| > > > | > >> >> >> ==================
| > > > | > >> >> >> | > > > | > >> >> >> | 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?
| > > > | > >> >> >>
| > > > | > >> >> >>
| > > > | > >> >> >
| > > > | > >> >> >
| > > > | > >> >>
| > > > | > >> >>
| > > > | > >> >
| > > > | > >> >
| > > > | > >>
| > > > | > >>
| > > > | > >
| > > > | > >
| > > > | >
| > > > | >
| > > > |
| > > > |
| > > >
| > > >
| > >
| > >
| >
| >
|
|