This is a discussion on PHP vs Coldfusion? within the Coldfusion forums, part of the Programming Talk category; Which would you choose if you where creating a social network?Why would you choose it?Yeah, I know PHP ...
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
PHP vs Coldfusion?
Which would you choose if you where creating a social network?Why would you choose it?Yeah, I know PHP and Coldfusion I am a senior php and cf developer I just really cant tell the difference in the two, except CF cost.
__________________
Powered by Yahoo! Answers |
|
|||
|
The only reason to use CF is because it is a lot faster if you've never programmed in one of these languages before. All of the commands are just a lot simpler to use. That doesn't mean they are any less powerful; they are just as powerful as anything in PHP, its just much more proprietary. CF now has a lot of its commands available in CFSCRIPT form, so much of the old way of doing CF is going by the wayside where everything was tag based.Still, most of CF is tag based. A query to a database would look like this:select * from tblImageswhereas in PHP it'd be a database connect command followed by some mysql function calls:$datasource = mysql_connect($DBhost,$DBuser,$DBpass) or die("Unable to connect to database");@mysql_select_db("$DBName") or die("Unable to select database $DBName");$sqlquery ="select * from tblImages";$XXX_result=mysql_query($sqlquery);$XXX_num_results=mysql_num_rows($XXX_result);Much more convoluted, but not necessarily any different than the CF method.
__________________
Powered by Yahoo! Answers |
![]() |
| Thread Tools | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SQL Server 2005 Driver for PHP | techguru | PHP | 0 | 10-09-2007 06:53 PM |
| Php Tutorials and ebooks | cybot | PHP | 1 | 04-14-2007 03:01 AM |
| PHP Tutorial - Introduction | rachelle | PHP | 0 | 06-02-2006 01:40 AM |
| Criticisms Of ColdFusion | encoder | Coldfusion | 0 | 05-06-2006 08:07 PM |
| Making the PostgreSQL and PHP Connection | techguru | Unix Articles and Tutorials | 0 | 08-27-2005 12:24 AM |