what

 Setting Favicon.ico  PHP Scripts  Cascading Sheets  HTML Tips  Links 

 

 

 

What Php Can Do

what php can What Php Can Do

What can PHP do

Anything. PHP is mainly focused on server-side scripting, so you can do anything any other CGI program can do, such as collect form data, generate dynamic page content, or send and receive cookies. But PHP can do much more.

There are three main areas where PHP scripts are used.

* Server-side scripting. This is the most traditional and main target field for PHP. You need three things to make this work. The PHP parser (CGI or server module), a web server and a web browser. You need to run the web server, with a connected PHP installation. You can access the PHP program output with a web browser, viewing the PHP page through the server. All these can run on your home machine if you are just experimenting with PHP programming.
* Command line scripting. You can make a PHP script to run it without any server or browser. You only need the PHP parser to use it this way. This type of usage is ideal for scripts regularly executed using cron (on *nix or Linux) or Task Scheduler (on Windows). These scripts can also be used for simple text processing tasks.
* Writing desktop applications. PHP is probably not the very best language to create a desktop application with a graphical user interface, but if you know PHP very well, and would like to use some advanced PHP features in your client-side applications you can also use PHP-GTK to write such programs. You also have the ability to write cross-platform applications this way. PHP-GTK is an extension to PHP, not available in the main distribution. If you are interested in PHP-GTK, visit » its own website.

PHP can be used on all major operating systems, including Linux, many Unix variants (including HP-UX, Solaris and OpenBSD), Microsoft Windows, Mac OS X, RISC OS, and probably others. PHP has also support for most of the web servers today. This includes Apache, Microsoft Internet Information Server, Personal Web Server, Netscape and iPlanet servers, Oreilly Website Pro server, Caudium, Xitami, OmniHTTPd, and many others. For the majority of the servers PHP has a module, for the others supporting the CGI standard, PHP can work as a CGI processor.

So with PHP, you have the freedom of choosing an operating system and a web server. Furthermore, you also have the choice of using procedural programming or object oriented programming, or a mixture of them. Although not every standard OOP feature is implemented in PHP 4, many code libraries and large applications (including the PEAR library) are written only using OOP code. PHP 5 fixes the OOP related weaknesses of PHP 4, and introduces a complete object model.

With PHP you are not limited to output HTML. PHP's abilities includes outputting images, PDF files and even Flash movies (using libswf and Ming) generated on the fly. You can also output easily any text, such as XHTML and any other XML file. PHP can autogenerate these files, and save them in the file system, instead of printing it out, forming a server-side cache for your dynamic content.

One of the strongest and most significant features in PHP is its support for a wide range of databases. Writing a database-enabled web page is incredibly simple. The following databases are currently supported:

Adabas D InterBase PostgreSQL
dBase FrontBase SQLite
Empress mSQL Solid
FilePro (read-only) Direct MS-SQL Sybase
Hyperwave MySQL Velocis
IBM DB2 ODBC Unix dbm
Informix Oracle (OCI7 and OCI8)
Ingres Ovrimos

We also have a database abstraction extension (named PDO) allowing you to transparently use any database supported by that extension. Additionally PHP supports ODBC, the Open Database Connection standard, so you can connect to any other database supporting this world standard.

PHP also has support for talking to other services using protocols such as LDAP, IMAP, SNMP, NNTP, POP3, HTTP, COM (on Windows) and countless others. You can also open raw network sockets and interact using any other protocol. PHP has support for the WDDX complex data exchange between virtually all Web programming languages. Talking about interconnection, PHP has support for instantiation of Java objects and using them transparently as PHP objects. You can also use our CORBA extension to access remote objects.

PHP has extremely useful text processing features, from the POSIX Extended or Perl regular expressions to parsing XML documents. For parsing and accessing XML documents, PHP 4 supports the SAX and DOM standards, and you can also use the XSLT extension to transform XML documents. PHP 5 standardizes all the XML extensions on the solid base of libxml2 and extends the feature set adding SimpleXML and XMLReader support.

At last but not least, we have many other interesting extensions, the mnoGoSearch search engine functions, the IRC Gateway functions, many compression utilities (gzip, bz2, zip), calendar conversion, translation...

As you can see this page is not enough to list all the features and benefits PHP can offer. Read on in the sections about installing PHP, and see the function reference part for explanation of the extensions mentioned here.


Telegraph.co.uk

Chelsea Clinton's wedding a no-fly zone — and other details [poll]
Los Angeles Times (blog)
Chelsea Clinton will marry Marc Mezvinsky on Saturday in a wedding ceremony and reception set for Rhinebeck, NY, where a no-fly zone has been declared from ...
No recession for Chelsea Clinton's nupsBoston Herald
No-fly zone declared for Chelsea Clinton's upstate NY wedding; FAA will close ...The Canadian Press
Chelsea Clinton Wedding Location -- No-Fly ZonePeace FM Online
AFP -Times of India -msnbc.com
all 2,889 news articles »


CNET

Windows Phone 7's achilles heel --- no enterprise app deployment tool
Computerworld (blog)
Microsoft will be leaving an important enterprise deployment tool out of Windows Phone 7, forcing enterprises to use the public Windows Phone Marketplace to ...
HP: No More Windows Phone 7 SmartphonesPC Magazine
Microsoft's Free Phone GiveawayInformationWeek (blog)
What Windows Phone 7 doesn't have becomes a hot topicComputerworld
ZDNet (blog) -InformationWeek (blog) -Seattle Post Intelligencer (blog)
all 409 news articles »


Reuters

No homer for A-Rod but Yankees roll
Boston Herald
Rodriguez has gone six games without a home run since hitting No. 599 last Thursday against the Royals, but he's hardly slumping, 8-for-26 in that stretch. ...
Two hits but no homers for Alex Rodriguez as Yankees beat Indians, 8-0The Star-Ledger - NJ.com
2 hits for A-Rod, but no HR, as Yankees dominateNewsday (subscription)
A-Rod pleased with quality of at-batsMLB.com
New York Daily News -New York Times -MiamiHerald.com
all 1,407 news articles »


Washington Post

NFLN: Terrell Owens buys rights to Bengals' No. 81 from Antonio Bryant
USA Today
Terrell Owens will again wear the No. 81 when he dons the jersey of the Cincinnati Bengals this season. NFL Network analyst Warren Sapp reported that Owens ...
T.Ochocinco experiment could be a thing of beautyNFL News
Bengals report for camp, TO to followThe Associated Press
TO closes gap between Ravens and BengalsBaltimore Sun (blog)
Boston Globe -Yahoo! Sports -ESPN
all 2,126 news articles »



Washington Post

Calls for Rangel to quit could escalate if no deal
The Associated Press
If there's no plea bargain, a rare ethics trial would probably begin in September. Several of those Democrats interviewed Wednesday cited their affection ...
Deal or no deal with Rep. Charlie RangelWashington Post (blog)
No deal in sight for RangelPolitico
D-day for Rep. Charles Rangel, but will he show up at ethics hearing? Aides ...New York Daily News
CNN -Newsday (subscription) -FOXNews (blog)
all 3,042 news articles »


Telegraph.co.uk

Amazon's New Kindle: Nice, But No iPad
Newsweek (blog)
But as for Amazon making a serious rival to the iPad? Forget about it. An Amazon spokesman says the company has no plans to make a tablet computer.
Amazon Kindle; stacking it up with B&N, Borders, and SonyZDNet (blog)
Amazon unveils new generation of Kindle e-readersCNET (blog)
Hands On With Amazon's Zippy, Alluring KindleWashington Post
AFP -BBC News -infoSync World
all 1,215 news articles »


SodaHead News

Dem memo: No, we won't lose the House
Washington Post (blog)
If I were Dems, I would tout that new report claiming if no Fed Action, TARP or Stimulus were enacted, ...
The DNC says GOP = tea party, and...The Guardian
Where's tea party's outrage over billions that disappeared in Iraq?Atlanta Journal Constitution (blog)
Toward an Economic Message for DemocratsHuffington Post (blog)
Wall Street Journal (blog) -New York Times (blog) -Dallas Morning News
all 486 news articles »


Aljazeera.net

No US, coalition vessels near Japan tanker - US Navy
Reuters Africa
DUBAI July 29 (Reuters) - There were no US Navy or maritime coalition vessels near a Japanese supertanker damaged in an incident in the Strait of Hormuz, ...
Japan's Mitsui maintains oil tanker was likely attackedAFP
Cause of explosion on Japanese tanker in Hormuz remains unclearXinhua
Japanese tanker damaged near OmanBBC News
The Associated Press -Newsday (subscription)
all 876 news articles »


Washington Post

The environment: Congress to take no action on climate-change legislation and ...
Seattle Times
President Barack Obama (2nd R) holds a bi-partisan meeting in the Cabinet Room of the White House with House Minority Leader John Boehner (L), ...
America's climate policy: CappedThe Economist
Harry Reid's goal: Localize, localize, localizeWashington Post (blog)
Spill bills highlight Republican oppositionPolitico
The Guardian -BusinessWeek
all 321 news articles »

Google News

Common Misspellings include additinally adavanced alowing alsot, aslo allthough altho, althought, altough adn, anbd anytying aplication, applicaiton applicaitons availaible, availble, availiable, availible, avalable, avaliable, avilable benifits betwen, bewteen inbetween, vetween bu calander, calender, calender conected conection convertion currenly desktiop distrubution doccuments eveyr excange excecuted, exectued explaination extenstion, extention extentions extemely, extrememly, extremly, extremly fiel fiel fiels focussed follwoing, folowing fomr fomr, frome fucntion, funtion futhermore ganerate ahev, ahve, haev, hvae, hvea htere implimented includng, incuding, inlcuding infomation, informtion instade intresting, intresting it's jstu knwo,konw, kwno, nkow, nkwo laguage laguages larg lastr, lsat librarie libary, libary liek, liuke mailny majoroty, marjority amke, mkae, mkea maintioned modle moreso, mroe, omre ened nto, onot lonly, onyl nother, otehr pwn peronal, personel probablly, probaly, probly, probly, prolly, prolly proccessing processer progrom progroms protocal reseive, resieve, recieve referrence, refference refrence regluar reguarly, regularily scirpt seach siginificant, signficant, signficiant, signifigant sose smoe, soem standars stornegst wupport sytem tlaking taht, tath, thast, thgat, thta, thyat hten, tghe, ther, thge, tjhe theese thigns, thigsn, thnigs htis, thsi, tihs threee throught, thru todya traditionnal tranform useage uise unsed usefull useing veyr, vrey, vyer, vyre vell waht, whta widows owrk, wokr, wrok worls owudl, woudl rwite, wriet wirting, writting, writting writen mca, operating, system, osx,
 Setting Favicon.ico  PHP Scripts  Cascading Sheets  HTML Tips  What PHP Can Do  Php Made Easy  Php Made Easy