home
NEWS       BLOGS       FORUMS       NEWSLETTERS       RESEARCH       EVENTS       DIGITAL LIBRARY       CAREERS  
Network Computing Network Computing Powered by InformationWeek Business Technology Network

IMMERSE YOURSELF:

SOA

  |

Data Center

  |

802.11n

  |

Data Privacy

  |
APO  |

Virtualization

  |

NAC

  |

Security

  |

Network Mgmt

  |

Enterprise Apps

  |

Storage & Servers



  F E A T U R E 

The Best Bets for Web Development

October 4, 1999
Reviews
Sizing Up the Development Tools
The Web servers' associated offerings--IIS and Visual Studio, Apache and PHP, and Netscape Enterprise Server and Java--are each strong in particular areas. By Ahmad Abualsamid

Performance isn't all that matters when choosing a Web server architecture; it's important to factor the availability and quality of development technologies into your decision if you plan to run a Web-based application or a Web-based business.

Some development technologies are built into one or more Web servers and can be language-independent, such as the Common Gateway Interface (CGI). Some depend heavily on the available development tools, such as ActiveX components that are mostly developed using Microsoft Visual Studio.

There are many excellent Web development options that we do not address in our evaluations--we decided to focus on the Web servers and their associated offerings here rather than on Web development options in general.

Which is right for you? There's no single answer. Microsoft shops will invariably use IIS's excellent set of development tools, while more independent-minded programmers may prefer the free and widely supported Apache and PHP. Java developers, meanwhile, will be hard-pressed to find a better environment than Netscape (iPlanet) Enterprise Server, with its support for the most cutting-edge Java tools.

Apache Server and PHP
For application development, Apache and PHP are my favorites. The documentation is abundant, and the support from users is phenomenal. The stability, especially on a Unix server, is unparalleled. Source Code Control can be performed using the freely available CVS tools. If your shop is not committed to IIS or Java, give Apache, PHP and mySQL on a Linux server serious consideration.

From simple to complex applications, Apache Web server provides several options for developing code. The old-fashioned CGI (Common Gateway Interface) in conjunction with Perl, C or any other language will handle simple forms at low-traffic sites. These programs are spawned in a separate process and thus typically add considerably to the overhead of running your Web application.

Like Netscape and IIS, Apache has an API to make up for CGI's deficiencies. Using the Apache API, programmers can write a piece of software according to a certain structure in C. This piece of code, called a module, can then be linked to the Apache distribution or loaded dynamically at run time. Using C function calls, the programmer has direct access to many of Apache's inner workings. This option is available for both Netscape (through the NSAPI) and IIS (through ISAPI) but has been used most under Apache by developers all over the world. If you venture down that road--for example, if your application needs to process large data sets--check out mod_example.c in the Apache distribution's/modules directory. A special module known as mod_perl allows you to write other modules in Perl instead of C.

We prefer writing dynamic content for Apache with PHP, an Open Source, free server-side HTML-embedded scripting language. PHP provides a programming approach similar to ASP, but its broad support of databases gives it an edge over VBScript. PHP allows you to embed code into your HTML page that's executed on the server. The client never sees the PHP code. PHP's syntax resembles C's and is easy to learn for any programmer with C or Perl background. It allows for complex data structures such as arrays and classes and, because it supports so many databases, it enables the development of large applications only in PHP.

PHP also has ease of use on its side. Writing a database-enabled Web application is simple. Such an application consists of a form in an HTML page that invokes a PHP script, which can open a database connection using a single statement specifying a server name, a user name and an optional password. The code can then perform a SQL query to return all the addresses matching the query submitted through the form. The result is a database result set that can be iterated by using a PHP loop, printing out the information to a resulting HTML page using the built-in echo() and printf() functions. This all takes about six lines of PHP scripting. The end user never sees more than an HTML page with a list of names and addresses in it, since all PHP code has been preprocessed on the server.

More complicated Web applications--especially full-fledged Web clients that replace existing fat clients--require the use of sessions. ASP has provided the concept of a session for a long time, and PHP4 now includes them. Sessions eliminate the need to keep writing and reading cookies to figure out where a user has been. Instead, you store relevant information in a session variable. These variables, along with unique session IDs, let you write complex applications that cater to users' needs while you track their activities.


Send your comments on this article to Gregory Yerxa at gyerxa@nwc.com.


PAGE: 1 I 2 I 3 I 4 I 5 I 6 I 7 I 8 I 9 I 10 I 11 I NEXT PAGE
 





Looking for a new job?

Function:

Keyword(s):

State:
SPONSOR
RECENT JOB POSTINGS
CAREER NEWS
The tumbling of IT jobs stopped in the second quarter, as the IT sector added about 44,000 jobs.

It's just a glimmer, but Oracle is starting to see a bit of light at the end of the recession tunnel.










2009 IT Salary Survey: Meager Raises, Solid Prospects
Though raises are notably smaller than a year ago, and job security’s shrinking, IT careers are looking safer than many others in this economic downturn. Get all the findings in InformationWeek's 2009 IT Salary Survey. Available FREE for a limited time.
 
ROLLING RIGHT ALONG
Follow key Network Computing Reviews from conception to completion. This Week: Holistic APM.



Network Computing Reports Emerging Enterprise Podcast Series: Secrets to Success








TechSearch


Microsite of the Week


Powerful Information at Your Fingertips



Techweb
Informationweek Business Technology Network
InformationweekInformationweek 500Informationweek 500 ConferenceInformationweek AnalyticsInformationweek Events
Informationweek MagazineGlobal CIOIWK Government ITbMightyByte and SwitchDark Reading
Digital LibraryIntelligent EnterpriseInternet EvolutionNetwork ComputingPlug Into The CloudDr. DobbsContentinople
space
TechWeb Events Network
InteropVoiceConWeb 2.0 ExpoWeb 2.0 SummitEnterprise 2.0Mobile Business ExpoNoJitter
Black HatGTECEnergy CampCloud ConnectGov 2.0 ExpoGov 2.0 Summit
space
Light Reading Communications Network
Light ReadingLight Reading AsiaUnstrungCable Digital NewsInternet EvolutionPyramid Research
Heavy ReadingLight Reading LiveLight Reading InsiderEthrnet ExpoTelco TVTower Technology Summit
space
Financial Technology Network
Advanced TradingBank Systems and TechnologyInsurance and TechnologyWall Street and TechnologyAccelerating WallstreetBST SummitBuyside Trading SummitIT Summit
space
Microsoft Technology Network
MSDNTechNetTotal IT ProTotal Dev ProNET Total Dev Pro CommunitySQL Total Dev Pro Community
space


App Infrastructure   |   Messaging & Collaboration   |   Network & Systems Mgmt   |   Network Infrastructure   |   Security  |   Storage & Servers   |   Wireless   |   Enterprise Apps
About Us  |  Contact Us  |  Site Map  |  Technology Marketing Solutions  |  Advertising Contacts  |   Briefing Centers
Copyright © 2009  United Business Media LLC  |  Privacy Statement  |  Terms of Service