Using dwt's in .Php files

A

Alvaro Guevara

Hi FP news folk

Im trying to use dwt's on .php files. Said php files will take the template,
but when I make a change to the dwt, the .php files dont always update. Ive
done it a few times to quite a few .php file, and they will, then they wont
update, then they will, then back to wont.

Am I goofing up? Are there issues w/ FP 2003 and php files?


Thanks much
Al Guevara

* FP 2003
* disk based webs w/ defualt FP
* Windows XP lastest ver
* Tools | Options |C onf Edts | set to default > open as text
 
S

Stefan B Rusynko

Depends on where your server side script is
DWTs don't support code before/after the <htmls> tags
DWTs only affect non-editable regions of the page

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Hi FP news folk
|
| Im trying to use dwt's on .php files. Said php files will take the template,
| but when I make a change to the dwt, the .php files dont always update. Ive
| done it a few times to quite a few .php file, and they will, then they wont
| update, then they will, then back to wont.
|
| Am I goofing up? Are there issues w/ FP 2003 and php files?
|
|
| Thanks much
| Al Guevara
|
| * FP 2003
| * disk based webs w/ defualt FP
| * Windows XP lastest ver
| * Tools | Options |C onf Edts | set to default > open as text
|
|
|
|
 
A

Alvaro Guevara

Hi Stephan,
Thanks for answering, I appreciate it. Im not sure what your saying though?
Heres what I got. I took a blank .php file, then I applied a .dwt to it. In
this .php file, I have an editable region for .php code(see below)
IE: an abbreviated view of my html in the dwt:

<HTML><HEAD>
<!-- #BeginEditable "doctitle" -->
<title></title>
<META NAME="keywords" CONTENT="">
<META NAME="description" CONTENT="">
<!-- #EndEditable -->
<BODY>
<!-- #BeginEditable "content area" -->
<p>&nbsp;</p>
<!-- #EndEditable -->

<!-- #BeginEditable "php area" -->
<p>&nbsp;</p>
<!-- #EndEditable -->
</BODY><HTML>

Whan I make a change to the DWT file, Frontpage DOES NOT update the .php
files, but it DOES update the files that are .htm.
And even manully doing the FORMAT MENU | DWT | UPDATE ALL or ATTACHED,
still is as above; The .htm's get updated, but not the .php's.

Does that make sense?

Thanks
 
S

Stefan B Rusynko

Your PHP is in an Editable region which are never updated by DWTs

<!-- #BeginEditable "php area" -->
<p>&nbsp;</p>
<!-- #EndEditable -->

Change the editable region to an non-editable region

<!-- start php area -->
<p>Your PHP code fo al pages here</p>
<!-- end php area -->

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Hi Stephan,
| Thanks for answering, I appreciate it. Im not sure what your saying though?
| Heres what I got. I took a blank .php file, then I applied a .dwt to it. In
| this .php file, I have an editable region for .php code(see below)
| IE: an abbreviated view of my html in the dwt:
|
| <HTML><HEAD>
| <!-- #BeginEditable "doctitle" -->
| <title></title>
| <META NAME="keywords" CONTENT="">
| <META NAME="description" CONTENT="">
| <!-- #EndEditable -->
| <BODY>
| <!-- #BeginEditable "content area" -->
| <p>&nbsp;</p>
| <!-- #EndEditable -->
|
| <!-- #BeginEditable "php area" -->
| <p>&nbsp;</p>
| <!-- #EndEditable -->
| </BODY><HTML>
|
| Whan I make a change to the DWT file, Frontpage DOES NOT update the .php
| files, but it DOES update the files that are .htm.
| And even manully doing the FORMAT MENU | DWT | UPDATE ALL or ATTACHED,
| still is as above; The .htm's get updated, but not the .php's.
|
| Does that make sense?
|
| Thanks
|
|
|
| | > Depends on where your server side script is
| > DWTs don't support code before/after the <htmls> tags
| > DWTs only affect non-editable regions of the page
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > _____________________________________________
| >
| >
| > | > | Hi FP news folk
| > |
| > | Im trying to use dwt's on .php files. Said php files will take the
| > template,
| > | but when I make a change to the dwt, the .php files dont always update.
| > Ive
| > | done it a few times to quite a few .php file, and they will, then they
| > wont
| > | update, then they will, then back to wont.
| > |
| > | Am I goofing up? Are there issues w/ FP 2003 and php files?
| > |
| > |
| > | Thanks much
| > | Al Guevara
| > |
| > | * FP 2003
| > | * disk based webs w/ defualt FP
| > | * Windows XP lastest ver
| > | * Tools | Options |C onf Edts | set to default > open as text
| > |
| > |
| > |
| > |
| >
| >
|
|
 

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