Page 1 of 1
Can I get some help with using Php in Frontpage?
Posted: Mon Aug 22, 2005 6:11 am
by Phrank
I have been developing web sites in Dreamweaver for two years and love it. I have to develop a new site for a customer who wants it in Frontpage. I can't seem to get it kickstarted.
I am using Frontpage 2003 /Windows XP / IIS ver 5.1 on my local pc. My PC works great with Dreamweaver on XP and IIS.
In Frontpage under help it tells you to do 4 things to make it Php compatible. I have done that. Found here
http://office.microsoft.com/en-us/a...1092991033.aspx
No matter what I try Frontpage ignores php commands. Here is the code I am trying to get to work:
-------------------------------------------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>
<body>
Hi
<? echo "Well hi to you"; ?>
</body>
</html>
-------------------------------------------------------
It says Hi but not Well hi to you.
I have used <?php instead of just <?. I have also used <%. All to no avail.
Any Frontpagers out there that can help me?
TIA
Frank
Posted: Mon Aug 22, 2005 6:41 am
by onion2k
Why are you letting a client dictate what software the website is written in? What difference does it make to them?
The customer uses Frontpage since it came with Office 2003.
Posted: Mon Aug 22, 2005 7:47 am
by Phrank
We are taking over for another web development firm that did all there work in Frontpage. They want the ability to do some updates to there web site thereselves. Also want me to come in and teach Frontpage to the owners. Hmmmmmmmmm.
If nothing is wrong with the code - and I am sure there is not - then why won't it show in Frontpage when you to a Preview or F12 to show in IE?
Again just learning Frontpage but under "Site Settings" - General - It says "Server Version:" No server in use.
How do I tell it to use my PC and look at IIS?
Re: The customer uses Frontpage since it came with Office 20
Posted: Mon Aug 22, 2005 8:02 am
by Roja
Phrank wrote:
If nothing is wrong with the code - and I am sure there is not - then why won't it show in Frontpage when you to a Preview or F12 to show in IE?
Because frontpage doesn't do PHP. When it sees the PHP, it attempts to parse it as html - which it isn't.
Thats why seperating output (html) from processing (php) is invaluable.
I've used Frontpage for a while, but it does not have the ability to preview-process php.. that would require embedding php into frontpage.
You can however, use a template system like Smarty, change the delimiter characters to html-compatible tags, and then use frontpage to edit at will.
That, I suspect, is more than you were looking to take on.
Re: The customer uses Frontpage since it came with Office 20
Posted: Mon Aug 22, 2005 8:58 am
by AnarKy
Phrank wrote: Also want me to come in and teach Frontpage to the owners.
From my experience, the
owners do not want to be the one's actually creating the webpages.
Try to get them to sign a
cheap support contact with you, or to hire a
cheap scripter.
It will save everyone both time and money.
PLUS you will not be restricted to FrontPage!
I am sure that you can convince them that frontpage is not the way to go??!!
Posted: Mon Aug 22, 2005 10:36 am
by Deemo
HTML written in frontpage is so horrible written anyways, noone should ever have to use it. After all, what difference does it make to them? for all they know, you made the HTML in dreamweaver and then open it in frontpage. Keep in mind that, in general, clients are stupid, and maybe they dont realize that Frontpage writes in HTML, not some crazy frontpage language that only frontpage can use
i dont agree deemo
Posted: Mon Aug 22, 2005 11:55 am
by lostinphp
im sorry deemo i dont think all clients are stupid or can u take the risk of thinking they cud be stupid...but i do agree dat doin it in dreamweaver annd opening it in frontpage is an excellent idea.bravo!
Posted: Mon Aug 22, 2005 12:55 pm
by Roja
Deemo wrote:clients are stupid, and maybe they dont realize that Frontpage writes in HTML, not some crazy frontpage language that only frontpage can use
You might want to rethink that statement. In fact, Frontpage uses a number of features in their "html" that actually requires frontpage extensions. Their "page counter" is the best example.. a very simple feature, but its not standard html at all - it uses the cgi frontpage extensions.
So in fact, it does write in some crazy frontpage language that only frontpage can use.
