Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
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 ... .
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
If I have a webpage that builds through a template[dreamweaver], then template in php will be renamed to cfm template(I mean extension) or stay like is the name but convert code only ? if renamed or not how I make this template, the template for the cfm file[webpage] ?
Copy link to clipboard
Copied
There are no magic solutions. Open each page in DW and use File Save As to change the extension. Then figure out what the php code does and write whatever cf code does the same thing.
Copy link to clipboard
Copied
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.