About InfoWorld : Advertise : Subscribe : Contact Us : Awards : Events : Store
InfoWorld HomeNewsTest CenterOpinionsProduct GuideTechIndex
 COLUMN ARCHIVE  FORUMS
 

COLUMN

 


Treasure trove: PHP offers features that will make your Web apps sparkle

I JUST DISCOVERED a hidden gem. I'm talking about a programming environment called Hypertext Preprocessor, aka PHP (www.php3.org). PHP is a Web scripting language that is the functional equivalent of Microsoft's VBScript and Active Server Pages except that PHP is more platform-agnostic.

   ADVERTISEMENT
  

Free IT resource

Virtualization Insights from Top Experts - Learn how virtualization gets real!

Sponsored by Dell

Free IT resource

TechNet: More ways to know it, share it, and keep it running.

Sponsored by Microsoft

RELATED LINKS
»  AT&T buys high-speed wireless spectrum for $2.5 billion
»  Update: Sprint chief Forsee resigns
»  IT trainer offers master's degree for hackers
»  Wireless RSS feed 

IDG ENTERPRISE NETWORK
More Network LAN/WAN News...  (ComputerWorld)
Wireless EV-DO on board  (ComputerWorld)

TOP NEWS 


IT SOLUTION SEARCH

PHP runs on most free and commercial versions of Unix. It currently has limited support for Apache and Internet Information Server on Windows NT. I'm currently running PHP Version 3 (PHP3) under Linux as an integrated module for the Apache 1.3.6 Web server.

Considering that PHP3 is probably one of the leading plug-ins for Apache (the most popular Web server on the planet), it's almost embarrassing to call it a "hidden" gem, or to admit that I'm only now getting familiar with it.

There are already 500,000 Internet domains that use PHP3. A growing list of ISPs are offering support for PHP3. And you can find an impressive catalogue of commercial sites using PHP at www.php3.org/sites.php3.

PHP3 provides myriad powerful features for your Web applications. For example, you can use PHP3 to add access to most SQL database servers. PHP can also hook into LDAP, Netscape Directory, IMAP, and SNMP; the graphics library GD; file-compression libraries; and many more resources. Perl is probably the only Web application development tool that has more plug-ins.

The PHP3 language contains elements of Java, Perl, and C. Most people tend to wax rhapsodic about its similarity to Perl or Java, but I really appreciate the fact that the language syntax most resembles C. It's not that there's anything special about C syntax, but I'm more familiar with it than any other language. So I found it remarkably easy to be productive with PHP3 almost immediately. I was able to tinker together a crude Web interface to a MySQL contact database in just a few minutes.

PHP3 is sometimes compared to CGI, but such a comparison does not do PHP3 justice. The reason you can be productive so quickly is that its programming integrates right into your HTML like VBScript and JavaScript do.

In other words, unlike CGI, you don't have to write programs that spit out HTML as their output. You simply integrate your programs into the HTML pages themselves, shifting back and forth between PHP3 and HTML as needed. Integrating forms in PHP3 is a cinch.

If you want to see a good example of PHP3 and MySQL on Linux in action, check out the site www.zcentral.com by SDN Online. Zcentral is a brilliantly conceived free Web-based suite of groupware applications. In fact, it was Zcentral that got me interested in investigating PHP3.

One reason this site is so brilliant is that SDN Online figured out a way to motivate people to get others to join Zcentral. Each person who signs up gets a unique Zkey (my Zkey is npetreley). If you want to exchange e-mail or set up meetings with other people, all you have to do is tell them your Zkey and ask them to join Zcentral. They use your Zkey to add you to their address book, e-mail you, and invite you to appointments.

But the best thing about Zcentral is that it is a secure site and gives you surprisingly granular control over the secrecy of your personal data. I can grant or deny access to any of my personal data on an individual basis. That means I can give one person my home address, and the next person my work number. And because this is a Web-based system, any changes I make to either are immediately reflected in their address books.

Here are some more cool features that I found: If I allow people to see my home address, they not only get my address, but Zcentral offers them a map and written directions to my home. I can also grant others the ability to see only the free time in my schedule, to see all the current appointments I have scheduled, or give them the ability to read and write to my calendar.

These are the kinds of features we take for granted in dedicated group schedulers, but I'm not used to seeing them in free Web-based calendars.

If it wasn't for Zcentral, I'd still be ignorant about PHP3. Should I have known about it all along, or are you just discovering this jewel yourself? Let me know.


Nicholas Petreley is editorial director of LinuxWorld ( www.linuxworld.com ). Reach him at nicholas_petreley@infoworld.com, and visit his forum at www.infoworld.com.




SPONSORED WHITE PAPERS
EMC - Lower costs and improve reliability-Get the EMC CLARiiON white paper!
Ciphertrust - Are you ready for Sobig.G? Learn how to protect your email systems.
CDW - Personal attention. CDW. The Right Technology. Right Away.
EMC - Explore key performance features and capabilities of EMC ControlCenter 5.1.1.
Intel - Free Intel white paper shows you how to deploy a secure wireless LAN
Cisco - FREE WHITE PAPER: BLUEPRINT to design and implement secure VPNs
Verity, Inc. - "Mass Consolidation Hits the Web-Search Market"
McDATA - Download a FREE storage consolidation white paper from McDATA(R).
Lucent Technologies - Overcoming Common Firewall Limitations
Lucent Technologies - Leverage Your Mobile High Speed Data Access. Download Free White Paper!
Nokia - Get the scoop! Mobilizing business white papers & case studies.
BMC Software - Maximize the Potential of Enterprise Data: Free white paper!
Network Associates - Free white paper - Strategies for Optimizing Network Costs and Benefits
Entrust - Manage identities across applications. Improve productivity.
Stalker Software - CommuniGate Pro - Transform your Email and Calendaring
Remedy - A NEW Gartner Research Note:Producing Quality IT Services

Search the IDG White Paper Library:


SPONSORED LINKS

INFOWORLD MARKETPLACE


» Hot Stock Alert (TMDI)
Telemedicus - Medical Communication Top Telemedicine Technology
» Apply BPM and ITIL at your IT Help Desk
ServiceWise brings BPM to complete IT service while eliminating integration cost. Learn more here.
» EMC delivers high-speed image capture, storage
Learn how you can quickly capture, organize, and deliver information with EMC ApplicationXtender.
» Register for your free VMWare Virtualization kit!
VMware virtualization takes the cost and complexity out of IT  Download this free kit to learn how.
» FREE Sophos Threat Detection Test
Is your AV catching everything it should? Free virus, spyware and adware scan.




 HOME  NEWS  TEST CENTER  OPINIONS  PRODUCT GUIDE  TECHINDEX   About : Advertise : Subscribe : Contact Us : Awards : Events 

Copyright © 2008, Reprints, Permissions, Licensing, IDG Network, Privacy Policy

All Rights reserved. InfoWorld is a leading publisher of technology information and product reviews on topics including viruses, phishing, worms, firewalls, security, servers, storage, networking, wireless, databases, and web services.

Computerworld :: Network World :: CIO :: PC World :: Darwin :: CMO :: CSO
IT Careers :: JavaWorld :: Macworld :: Mac Central :: Playlist :: GamePro :: GameStar :: Gamerhelp
ITWorld Canada :: Computerwoche :: Techworld UK :: tecChannel :: IDG.se :: IDG.no