Skip to content Skip to sidebar Skip to footer

Exit the Program and Then Again Start Program in Php

PHP

Greenland native Rasmus Lerdorf was tired of writing the same code over and over while creating his personal dwelling house page back in 1995.

And then, he says, he wrote "a very simple parser" to supervene upon tags in an HTML file with some code he'd written in C.

That project evolved into PHP, an open-source scripting linguistic communication at present installed at more than 1 in every five Web domains, according to an October 2001 survey of more than 6 one thousand thousand domains conducted past Netcraft, a Bath, England-based Net consulting visitor.

More

Computerworld
QuickStudies
PHP fans say the language is exceptionally like shooting fish in a barrel to larn. Information technology has a lot of built-in functions such as elementary connections to databases and support for the Lightweight Directory Access Protocol (LDAP).

"PHP was adult from the ground up to be a Web platform," says Zeev Suraski, chief technical officer at Zend Technologies Ltd. in State of israel and an author of the current version of PHP. "Very powerful applications tin can exist created in a very short time. . . This is the No. i feedback I get from people."

PHP code is highly portable; it moves from one brand of server to another with minimal or no rewrites. This multiplatform support appeals to Information technology managers who don't want to be locked into a unmarried brand.

Free and Easy

As open-source software, PHP is costless for corporate use and works well with other pop open-source projects, including the Apache Web server and the MySQL and PostgreSQL databases.

"If we didn't have PHP, it would cost u.s. half-dozen to seven times as much to operate [our] Information technology surroundings," says Kevin Crothers, head of corporate Web systems at WorldCom Inc. WorldCom has used PHP for several major Web projects, both internal and external, including the front end terminate to a searchable database of employees and contractors that contains more than 100,000 records. "Information technology's all LDAP-based," he says, noting that PHP had "the strongest LDAP integration nosotros've been able to find."

PHP uses server resources efficiently, Crothers says. Information technology uses memory sparingly and allows customer-side estimation of lawmaking to shoulder some processing brunt.

"In that location's money in your pocket right in that location," he says, because a PHP-based awarding requires less server hardware than some other environments. Crothers adds that he has found PHP to be both stable and secure, and he believes that the language is very easy to learn compared with competing technologies such every bit Microsoft Corp.'south Agile Server Pages (ASP) engineering for dynamic Web applications.

Room for Improvement

However, many developers generate ASP code from software such as Microsoft's Visual InterDev, which can exist easier for nonprogrammers than coding in PHP, Suraski notes.

Now, at that place are no high-level commercial WYSIWYG Web authoring tools that automatically generate PHP pages, which ways y'all need bodily programming noesis. That doesn't appeal to every Web development shop, but Suraski says he believes some PHP authoring tools will be out later this yr.

He as well acknowledges that PHP's object-oriented programming capability, compared with that of Java, for instance, "is not as powerful as it should be." This tin can make PHP a bit more cumbersome for creating very large-scale applications. However, improvements are in the works for PHP Version five.0, he said, which is due one-time in the second quarter.

Lerdorf says other upcoming improvements include making PHP Extension and Awarding Repository (PEAR) more useful. PEAR solves some Web-related problems but isn't part of PHP itself. "Y'all volition also see some overnice means to build [Simple Object Access Protocol/Web Services Description Language] services with PHP," he says.

PHP is an interpreted language and doesn't use compiled binary executables, and so PHP applications tin can be more than easily viewed and dissected by competitors, says Crothers. For hiding code or creating applications for resale, products such as Zend's Encoder will mask some work.

For professional-level quality balls and testing, Crothers advocates using a product such as Komodo from Vancouver, British Columbia-based ActiveState Corp. Komodo'due south integrated evolution environment is available costless to individuals and nonprofit organizations.

Ultimately, Crothers says, PHP is an excellent environment for creating Web applications for WorldCom. "It does everything," he says.

To a higher place is an example of simple PHP lawmaking for e-mailing data entered into an HTML grade, where the course has fields chosen comments (for comments entered by a user) and frommail (for a user-entered e-post address), equally well as a hidden field tomail (for the address where information should be sent). The eastward-mail would be sent with the subject field line "User Comments."

In a production environs, additional code would be added for validation and security.

See additional Computerworld QuickStudies

Copyright © 2002 IDG Communications, Inc.

baldwintrards.blogspot.com

Source: https://www.computerworld.com/article/2586245/php.html

Post a Comment for "Exit the Program and Then Again Start Program in Php"