Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
preview problems - HTML code that includes PHP
boskovuk
I am not able to resolve the problem with our HTML generated code that has embedded PHP code in it.
Even worse, why would this code not work - testphp.HTML:
<html>
<body><?php echo "Hello World"; ?></body>
</html>
I am clicking on this file, testphp.html and get a new empty browser window. PHP code is not rendered. Any idea what is causing this not to work?
Basic test.php preview works from within TS - meaning that IIS and PHP are configured properly.
TS Server Version: Interwoven TeamSite 6.5.0.0 (Build Number: 41240)
Platform: Win 2K
PHP: 5.04
Find more posts tagged with
Comments
iwovGraduate
If I understand it right - previewing your .php files work and .html files with PHP codes do not work.
Perhaps its to do with the mime types settings (or is it called something else?) in IIS ? i.e. tell IIS to do some server side processing (same as whats done for .php) for .html page.
boskovuk
That's it - thanks iwovGraduate.
I have configured IIS to pass .html files through PHP interpreter (in my environment, php5isapi.dll).
TS Server Version: Interwoven TeamSite 6.5.0.0 (Build Number: 41240)
Platform: Win 2K
PHP: 5.04
boskovuk
However,
there are differences in the actual output between these two cases:
1. when the html file (that includes PHP) is loaded to a browser directly and
2. when the same html file is preview-ed from within TS
The actual rendering looks ok, yet, the source behind the page, in the second case is shown in the attached file.
Any idea why TS is generating all that extra code?
I don't think that extra code should have been there in a first place.
TS Server Version: Interwoven TeamSite 6.5.0.0 (Build Number: 41240)
Platform: Win 2K
PHP: 5.04
iwovGraduate
If you intended to attach something it didn't make it.
TS preview will usually inject some code which is for Smart Context Editor aka Visual Preview Toolbar. However that does not usually change the way content rendered in the page.
Not sure if thats what you are talking about.