PHP tag coloring

E

Eliezer Kanal

I'm trying to design a site using php technology, and it
seems that FP 2003 doesn't recognize php. When I open
a .php page, it automatically puts me in code view, and it
doesn't apply color to the various tags and whatnot. Is
there any way to get FP to recognize that the stuff in
this page is (mostly) the same as what's in a
regular .html file? Thanks in advance.
 
N

Net55

FrontPage has very limited support for php, try .asp (by
far the most supported / referenced "dynamic page" langue)
or get another editor, such as Dreamweaver.
 
C

chris leeds

ive seen posts where you do a find and replace of <? to <% and ?> to %>
you'd also have to have the server admins turn on "asp style tags" in the
php.ini

HTH
 
C

chris leeds

or if you don't need the wysiwyg of dreamweaver, notetab from www.fookes.com
or editplus (forget the url) does a good job of color coding. just set it
as the default editor in FrontPage.
 
G

Guest

This deviates from the original question a bit, but I'm interested in hearing what you folks have to say... as a web developer, why should I use .asp over .php?
 
T

Thomas A. Rowe

If you are hosted on a Windows IIS, then it is a built-in service of IIS. However if hosted on
Unix/Linux then PHP would be the choice. Both scripting languages basically allow you to do the same
thing.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Eliezer Kanal said:
This deviates from the original question a bit, but I'm interested in hearing what you folks have
to say... as a web developer, why should I use .asp over .php?
 
C

chris leeds

I'd never thought of that! I'll have to give it a try. I'm actually
thinking of using asp style tags myself with fp 2003 if I ever get a chance
to "fool around".
 
C

chris leeds

I think as a web developer you should be able to use virtually anything.
Luckily I'm not very proficient at any particular language so I can get by
in all without big prejudice.
I will say this: <imho> asp/ vbscript is about as easy to look at and
understand as it gets. FrontPage tends to leave it alone and it's pretty
easy to modify preexisting applications written in it.</imho>
on the other hand there is sooooo much free php stuff out there that you're
probably going to wind up using some of it at some time or another. Lets
say you've got a client with a car lot and not a ton of money to spend. you
hunt through hotscripts to look for a place to start, etc. and there is a
php app that looks like it's pretty close. you're going to use it, or at
least you should at least consider it.
If you can get a big headstart on a project because there is some free open
source script package out there.......


--
The email address on this posting is a "black hole". I got tired of all the
spam.
Please feel free to contact me here:
http://nedp.net/contact/
--


Eliezer Kanal said:
This deviates from the original question a bit, but I'm interested in
hearing what you folks have to say... as a web developer, why should I use
..asp over .php?
 
S

Stefan B Rusynko

There are some addins to help w/ using PHP at
http://www.microsoft.com/frontpage/downloads/addin/default.asp

--




| I'm trying to design a site using php technology, and it
| seems that FP 2003 doesn't recognize php. When I open
| a .php page, it automatically puts me in code view, and it
| doesn't apply color to the various tags and whatnot. Is
| there any way to get FP to recognize that the stuff in
| this page is (mostly) the same as what's in a
| regular .html file? Thanks in advance.
 
T

Thomas A. Rowe

If you learn, say ASP well enough, then you can look at scripts written in PHP, CGI-Perl, etc., and
then create the same functionality with ASP/VBScript.

Personally I think it is a bad idea and will lead to problem down the road it you use multiple
server-side technologies in a web site, unless you know you will be the only one always working on
it.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
C

Crash Gordon

...unless you know you will be the only one always working on it.

job security :)


| If you learn, say ASP well enough, then you can look at scripts written in PHP, CGI-Perl, etc., and
| then create the same functionality with ASP/VBScript.
|
| Personally I think it is a bad idea and will lead to problem down the road it you use multiple
| server-side technologies in a web site, unless you know you will be the only one always working on
| it.
|
| --
| ==============================================
| 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
|
| > I think as a web developer you should be able to use virtually anything.
| > Luckily I'm not very proficient at any particular language so I can get by
| > in all without big prejudice.
| > I will say this: <imho> asp/ vbscript is about as easy to look at and
| > understand as it gets. FrontPage tends to leave it alone and it's pretty
| > easy to modify preexisting applications written in it.</imho>
| > on the other hand there is sooooo much free php stuff out there that you're
| > probably going to wind up using some of it at some time or another. Lets
| > say you've got a client with a car lot and not a ton of money to spend. you
| > hunt through hotscripts to look for a place to start, etc. and there is a
| > php app that looks like it's pretty close. you're going to use it, or at
| > least you should at least consider it.
| > If you can get a big headstart on a project because there is some free open
| > source script package out there.......
| >
| >
| > --
| > The email address on this posting is a "black hole". I got tired of all the
| > spam.
| > Please feel free to contact me here:
| > http://nedp.net/contact/
| > --
| >
| >
| > | > > This deviates from the original question a bit, but I'm interested in
| > hearing what you folks have to say... as a web developer, why should I use
| > .asp over .php?
| >
| >
|
|
 
C

chris leeds

which brings me to pose this question to your qualified brain:
when I was reading an .asp book it went on and on about .asp isn't a
language but a platform. that lots of different languages could be used in
an asp page, even PHP!
I'm assuming that the language call atop the page would be like php instead
of vbscript.
have you ever seen anything like that?
 
T

Thomas A. Rowe

ASP coding can be written in VBScript (the most common, and the one you will find the most support
for), JScript or Perl (as I have read).

PHP is a competing technology, and you wouldn't mixed the two, as it can basically do everything
that ASP can do.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
C

chris leeds

so do you think the book is wrong about being able to run php on an asp
page?

do you know of an easy way to "convert" php scripting to one of the more
common asp scripting languages?
 
T

Thomas A. Rowe

I don't think the book is wrong, just that is a very very bad idea, since it will cause the page to
have to processed twice (once by the ASP engine and then the PHP engine) before it is render in the
browser, and then if you have errors, well it should be fun trying to fix them. Also both use
sessions which could cause problems.

I don't know of any conversions applications, but I have never looked for any. What I have done is
to look at what the PHP script was doing, and then re-write the same functionality using VBScript.

Also when you look a various sites on the web, you will not see a site using more than one
server-side scripting technology. At least I haven't.

Even with ASP and ASP.net it is not a good idea to mix the two, but can be done.

I prefer to learn one technology and to learn it as well as possible, then to learn a bunch of
technologies and not know any them very well.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top