Is is possible to run Coldfusion & PHP on the same server and website?

前端 未结 5 1732
耶瑟儿~
耶瑟儿~ 2020-12-21 15:55

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

5条回答
  •  旧巷少年郎
    2020-12-21 16:36

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

    Something to think about, though, is the default document. If your web application uses urls like:

    http://example.com/myApp/ (no index.cfm or index.php in the url)

    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

    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

    Then the PHP page will be the one to execute.

提交回复
热议问题