Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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 ?

Explorer ,
May 12, 2009 May 12, 2009

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.

TOPICS
Getting started
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
May 12, 2009 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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 13, 2009 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 ... .

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
May 13, 2009 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 13, 2009 May 13, 2009

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] ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 14, 2009 May 14, 2009

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 24, 2009 May 24, 2009
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources