services


gallery


tutorials


process


contact


links

Gallery:  ColdFusion ASP PHP Shootout

ColdFusion

ASP

PHP

How a Page Goes Together

In terms of the scripting and HTML placement, ASP, ColdFusion and PHP are all pretty similar in the way a page is put together structurally, but each has its unique way of performing specific tasks. ASP, ColdFusion and PHP all have built-in support for server-side includes (SSI) for commonly used code segments. Examples of such code are identical page top and bottom page displays, common subroutines, and constants. ASP, ColdFusion and PHP all receive pre-named variables when variables are passed between pages through the url or from a form

ColdFusion

ColdFusion script is delimited with tags that resemble HTML, but most ColdFusion tags include multiple parameters that control their functionality. In general, a ColdFusion Tag is analogous to an ASP object (but the organization of functionality is totally different).

ColdFusion has the following internal data structures

Lists

   

ColdFusion Lists are essentially one-dimensional arrays, but the set of functions you use to create and manipulate the contents of lists are different from those which apply to arrays.

Arrays

   

ColdFusion supports multi-dimensional arrays up to three levels. They change size dynamically (gaps in a series created by deleting an element are automatically closed up).

Structures

   

ColdFusion structures are like Javascript associative arrays and are manipulated with their own set of ColdFusion functions.

A database connection is not explicitly established in a page, you simply use the tag to execute a query and pass it the data source name.

ColdFusion organizes variables by variable type, for example url, form, client, etc. The variable name has to be appended to the variable type designator if you use the same variable name for more than one variable type.



ASP

ASP script is delimited with <% %> tags. The language ASP uses is not confined to an ASP-unique structure. You can use existing languages that are widely used elsewhere, the most common being VBScript and Javasacript.

A database connection is normally established at the top of every page that uses a database.

ASP is often referred to as a "glue" application because of the fact that development strategy for larger applications is focused on moving as much functional code as possible out of scripts and into server components.



PHP

PHP has its own scripting language. PHP script is delimited by the following opening and closing tags by default:

<?php
      … code here…
?>

…or you can use ASP-like tags, e.g., <% %>.

All PHP variables must start with a $ sign.



Copyright © 2005 Cyberglitz

email: info@cyberglitz.com