using FrontPage with PHP tags

M

Michiel

I finally found a solution to an old problem of mine: using php with <?
and ?> tags and still being able to use frontpage web components, like
include files.

The trick is, since FP changes your pages at save-time to close the
file, rename to .html from within FrontPage, then immediately rename
back to .php. All included files and their respective paths will be
correctly adjusted, also in the case the file moves to another folder.

I do not recommend raping FP with PHP this way, but if your hands are
tied this is the next-to-perfect solution.

Other tricks I saw mention of in this group, just for reference sake,
include
- setting your web server to run .html files as php applications (not
ideal of course) in httpd.conf or .htaccess file or IIS config.
- using <% %> tags and setting ASP-tags compatibility in your php.ini.
I don't know how well this works because for all I know, FP is
particular about pages having the .html extension

Michiel
 
S

Stefan B Rusynko

TBMK applying the latest SP to FP 2003 solves that PHP include page problem

--

_____________________________________________
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
_____________________________________________


|I finally found a solution to an old problem of mine: using php with <?
| and ?> tags and still being able to use frontpage web components, like
| include files.
|
| The trick is, since FP changes your pages at save-time to close the
| file, rename to .html from within FrontPage, then immediately rename
| back to .php. All included files and their respective paths will be
| correctly adjusted, also in the case the file moves to another folder.
|
| I do not recommend raping FP with PHP this way, but if your hands are
| tied this is the next-to-perfect solution.
|
| Other tricks I saw mention of in this group, just for reference sake,
| include
| - setting your web server to run .html files as php applications (not
| ideal of course) in httpd.conf or .htaccess file or IIS config.
| - using <% %> tags and setting ASP-tags compatibility in your php.ini.
| I don't know how well this works because for all I know, FP is
| particular about pages having the .html extension
|
| Michiel
|
 

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