在 ColdFusion 页面的框架中使用 PHP

发布于 2024-10-22 01:45:14 字数 619 浏览 4 评论 0原文

我的组织几乎所有事情都使用 ColdFusion 页面。管理部门决定每个页面的标准布局、外观和感觉,以便所有组织页面看起来统一,但每个部门都可以修改其页面的某些“组件”。每个可以修改的“组件”都以 .cfm 文件形式存在,因此我所做的任何更改都必须在这些 .cfm 文件中进行。

我想包含我在一个部门页面上制作的 PHP 脚本,但显然我不能同时在同一个文件上使用两个服务器端脚本。我的想法是在 .cfm 文件中创建一个框架,其中源是我的 PHP 脚本,如下所示:

<frameset rows="100%,*" border="0">
  <frame src="http://myorgainzation/test.php" frameborder="0" />
</frameset>

当我这样做时,我可以在 FireFox 中查看页面的源代码,单击 http ://myorgainzation/test.php 链接,并查看我的 PHP 脚本生成的内容。问题是 PHP 脚本生成的信息没有像我预期的那样显示在框架中。事实上那里什么也没有。

我不经常使用框架,可以做我想要的吗?

My organization uses ColdFusion pages for most everything. The administration decides the standard layout, look, and feel of every page so things look uniform across all of the organizations pages, but each department can modify certain "components" of their pages. Each of the "components" that can be modified exist as a .cfm file, so any changes I make must be made in those .cfm files.

I want to include a PHP script I made in on one of my departments pages, but obviously I cannot use two server-side scripts on the same file at the same time. My idea is to make a frame in the .cfm file where the source is my PHP script like this:

<frameset rows="100%,*" border="0">
  <frame src="http://myorgainzation/test.php" frameborder="0" />
</frameset>

When I do this I can view my page's source code in FireFox, click on the http://myorgainzation/test.php link, and view what my PHP script generates. The problem is that the information generated by the PHP script isn't showing up in the frame like I expected it to. In fact there is nothing there at all.

I have not used frames very often, is it possible to do what I want?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沉默的熊 2024-10-29 01:45:14

对于大多数实际用途来说,框架已经过时了。您最好使用 100% 高度和 100% 宽度

Frames are outdated for most practical purposes. You would be better off using a 100% height and 100% width <iframe>

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文