ColdFusion -> PHP converter
Results 1 to 7 of 7

Thread: ColdFusion -> PHP converter

  1. #1
    Senior Member
    Join Date
    Jun 2000
    Posts
    65,357

    ColdFusion -> PHP converter

    Does anyone know of existing programs to convert ColdFusion code to PHP code? Kind of like the ASP2PHP coverter?

    If you havn't heard of an existing project and are interested in helping develop it please let me know!

    thanks :)

    Camden

  2. #2
    Senior Member
    Join Date
    Jun 2000
    Posts
    65,357

    RE: ColdFusion -> PHP converter

    I have used cold fusion for 3 years. The coding is alot easier than PHP it uses only
    #fieldname# for tags. Less coding such as no braces, no ;, no echo etc. I want to use PHP because of platform and server and cost issues of resale of web projects. If you find a conversion program let me know also,

    terry@biz-1.com

  3. #3
    Senior Member
    Join Date
    Jun 2000
    Posts
    65,357

    RE: ColdFusion -> PHP converter

    any luck finding a coldfusion->php converter?

  4. #4
    Senior Member
    Join Date
    Jun 2000
    Posts
    65,357

    RE: ColdFusion -> PHP converter

    No not yet. I think you would have to find a way to take the <cfoutput></cfoutput> tags and convert them to the necessary script in PHP and do a copy paste.

    I would love to have PHP use a similar output function.
    Something like this
    <%phpoutput%>FieldName</phpoutput>

    any suggestions.

    terry

  5. #5
    Senior Member
    Join Date
    Jun 2000
    Posts
    65,357

    RE: ColdFusion -> PHP converter

    Havn't found anything yet... but I started project on SourceForge called CF2PHP http://sourceforge.net/projects/cf2php/ to develop a solution.

    I'm trying to use Perl's HTML:Tree builder module which will expand a cf template into a structure of tags which can then be replaced with PHP syntax. So a <cfoutput> tag would be replaced with:
    <?php echo "
    And a </cfoutput> tag would be replaced with:
    "; ?>
    Then anytime a "#" was found with next to a string (that doesn't begin with a number) it get's replaced with a "$"... etc etc etc.

    I really havn't done much work on it yet, so if anyone finds a better solution please post it.

    Also, if you know some perl and would like to look at what I've got just email me.

    Thanks,

    Camden

  6. #6
    Senior Member
    Join Date
    Jun 2000
    Posts
    65,357

    started some code

    I've got some code started in the CVS repository at:
    http://sourceforge.net/projects/cf2php/

    Check it out and let me know what you think.

    Camden

  7. #7
    Senior Member
    Join Date
    Jun 2000
    Posts
    65,357

    RE: ColdFusion -> PHP converter

    sometimes i used a query like this i cf :
    <cfquery name="order_group" datasource="#dsn.db#" username="#db.username#" password="#db.password#">
    update documents
    set doc_order = doc_order - 1
    where cat_id = <cfqueryparam value="#select_order_border.cat_id#" cfsqltype="cf_sql_integer">
    <cfif select_order_border.subcat_id eq "">
    and subcat_id is NULL
    <cfelse>
    and subcat_id = <cfqueryparam value="#select_order_border.subcat_id#" cfsqltype="cf_sql_integer">
    </cfif>
    and doc_order > <cfqueryparam value="#select_order_border.doc_order#" cfsqltype="cf_sql_integer">
    and doc_order is not NULL
    </cfquery>

    one of powerfull of using cf is the way of query by cf. But if cf--->php comes true....it will be great...please let me know

    regard,

    yudi

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •