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