We will be including some php files (search, forms, etc) into the cm1. How do we accomplish that?
Pages consisting entirely of PHP code (for example, a form processing page) can be placed in a convenient location within your web_resources directory or as a file asset within your Asset library.
PHP code embedded in your pages can be placed within HTML widgets. You will also need to change the file extension on any pages using PHP to .php. Note that for the PHP code to function, you will need to publish to a server where PHP is installed.
So previously when we had embedded php code into our page I do not remember being instructed to change those pages to .php. If this is the case, then this could be a potential problem fixer. Thanks!
Somehow, converting the index page to index.html, rendered the php correctly, and the php source code is not shown anymore when you source preview.
Does the CM1 staging server have PHP installed?
No, it does not, Alanda. I haven’t tested such a configuration, but to get PHP running on Tomcat I believe you would need a tool such as PHP/Java Bridge (http://php-java-bridge.sourceforge.ne… ). However, I would recommend you setup an external Tomcat to test such configurations: http://help.percussion.com/publishing…
Thanks. I can stop beating my head against a brick wall. I though the difference between the local and staging servers was being able to test dynamic content.
By local, do you mean previewed pages through the CM1 user interface (on port 9992)? Or do you mean the embedded Tomcat at port 9980? The embedded Tomcat is for testing built-in dynamic content such as blogs, auto-list, comments, etc. An external Tomcat typically would be setup for your live site. I only recommended setting up an external Tomcat for PHP testing as a precaution because this is not something I have tested and I don’t want to recommend anything that might harm your embedded Tomcat.
I was referring to port 9980. No problem, I misunderstood and was wondering why the form was not working. Thanks for the explanation.