Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

converting cfm to php

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am really having a tough time with this. I had to switch servers and the new one doesnt support cfm. I was wondering if anyone out there knows how or knowws of a program that will convert my coldfusion site to php? Thats for the help!
 
ok, i am having great pains over this. If someone could please help me find a tutorial on this i would be very greatful. Or even a tutorial crash course on php since im going to have to do this by hand since there is no prgram converter out there...thanks for the help!
 
Hi,

i am in the same situation know coldfusion and have to learn php in a hurry for a client....their is a good tutorial at webmonkey.com that will get you started

dunskii
 
Unfortunately, ColdFusion is quite different from PHP. It is mainly a tag-based system, as I understand, and doesn't really support all the features of a true programming language. Actually, if you know any Javascript, this will help you more in understanding PHP than your ColdFusion knowledge, because they are very similar in syntax.

I recommend you read all the PHP tutorials at starting from the oldest, which will teach you the basics. -------------------------------------------

"Calculus is just the meaningless manipulation of higher symbols"
                          -unknown F student
 
If i started in on this project could i get help on identifying tags here in this forums if i need it? Ill work through the tutorials, but i just have a hard time converting now because CF is usually designed with serveralk small files(96 in py project) where when i convert it will end up being around 10-15. This is the most confusing part since I have no CF but little javascript experience. Id really love to get some help on this project...If i submit my work at source forge, will anyone be willing to help me convert my online game to php? Its a very basic none graphic site which helps bring in alot of traffic to any site. I dont like offering the source since everyone will download the cfm and not help contribute to php conversion. Then the scripts will be everywhere and no one will want tom come back to the original site to play it. If someone wants to help out i dont mind sharing ownership of the final code....Thanks for the tips...
 
I'm not sure I follow everything you are saying, but if you mean that CF "assembles" the files as they are being processed, PHP can also do that. And PHP can do substitution of special tags with dynamically supplied data. In PHP, we call this "templating".

With a little work, it should be possible to get almost a perfect mapping, tag-for-tag, between Coldfusion's methods and a good PHP templating library. This would allow for your existing files to keep the same structure (with only small syntax changes), and just substitute the core logic with PHP.

I honestly don't have time to help, though. Maybe some others would, using my advice above.

However, if you are really in the crunch you say you are, why not just find a hosting company that supports ColdFusion, and be done with it? Why make trouble for yourself? -------------------------------------------

"Calculus is just the meaningless manipulation of higher symbols"
                          -unknown F student
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top