我希望能够使用与coldfusion 站点中相同的数据库将一些新站点页面移植到PHP.是否可以让 PHP 在其他目录中运行页面并来回运行?
I would like to be able to port some new site pages over to PHP using the same db as in the coldfusion site. Is it possible to have PHP run pages in say other directory and go back and forth ?
非常感谢您的回复.
特里
正如其他人所说,是的,这是可能的.您的配置并不重要,(除非您寻求设置帮助),因为它可以在任何现代网络服务器(Apache、IIS 等)上完成.
As others have said, yes, it is possible. Your configuration doesn't really matter, (unless you're looking for help getting it setup), because it can be done on any modern webserver (Apache, IIS, etc).
不过,需要考虑的是默认文档.如果您的 Web 应用程序使用以下网址:
Something to think about, though, is the default document. If your web application uses urls like:
http://example.com/myApp/(没有 index.cfm 或 index.php 在网址)
http://example.com/myApp/ (no index.cfm or index.php in the url)
那么您需要注意默认文档的显式顺序.如果在同一个目录下同时有 index.php 和 index.cfm 模板,哪个会执行?
Then you need to be aware of the explicit order of default documents. If you have both an index.php and an index.cfm template in the same directory, which will execute?
如果您的默认文档列表是(的变体):
If your default document list is (a variation of):
index.cfm index.php default.aspx index.html
index.cfm index.php default.aspx index.html
然后将执行 ColdFusion 页面.另一方面,如果默认文档列表是(的变体):
Then the ColdFusion page will be the one to execute. On the other hand, if the default document list is (a variation of):
index.php index.cfm default.aspx index.html
index.php index.cfm default.aspx index.html
那么 PHP 页面将是要执行的页面.
Then the PHP page will be the one to execute.
这篇关于是否可以运行 Coldfusion &PHP 在同一服务器和网站上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!