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
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
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,
any luck finding a 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
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
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
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