Skip to main content
Inspiring
May 12, 2009
Question

I want to convert[copy to new URL] a whole PHP Site to a CFML Site, the easiest way is to go to each webpage[*.php] separatelly rename to[*.cfm] and translate the code [PHP>CFM] myself ?

  • May 12, 2009
  • 2 replies
  • 1541 views

I want to convert[copy to new URL] a whole PHP Site to a CFML Site, the easiest way is to go to each webpage[*.php] separatelly rename to[*.cfm] and translate the code [PHP>CFM] myself ? Is any auto-converter automatically converts but may not be "exact convert" ? I use dreamweaver cs4.

This topic has been closed for replies.

2 replies

BKBK
Community Expert
Community Expert
May 25, 2009

This is what you should ideally do. Study the site and all the original documentation, to understand what the application is all about. Analyse and design the new site, as if starting from scratch. Use the PHP pages only for reference. This assumes of course that there are enough resources available.

Inspiring
May 12, 2009

I've never heard of any code-conversion utilities between PHP and CFML. I'm not sure there is any 'easy' way to go about the conversion, however, your approach sounds like a logical place to start. That assumes that your PHP site does not use a framework (Zend, CakePHP, CodeIgnitor, etc.) and is, in fact, a collection of PHP files. That said, maybe someone else out here has heard of a good utility!

lse987Author
Inspiring
May 13, 2009

Without an automated conversion utility, the easiest way to implement, is to go to each webpage[*.php] separatelly, rename to[*.cfm], and translate the code [PHP>CFM] myself ? yes this is the best / no you must ... .

Inspiring
May 13, 2009

I think your approach (convert files to .cfm and then change code) is probably the only way to go realistically, since there are no utilities that I've found or heard of to automatically convert PHP code to CFML.

The potential pitfall to this approach, that I think is important to point out, is that if the PHP application you want to convert is based on a framework (CakePHP, Zend, Smarty Templates, etc.), converting the site will be much more difficult than simply renaming and translating the code.

If it is a standard PHP application (i.e., no framework used), rename and translate is the way to go.