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.


New York Times

Thaw in Senate Talks, but No Hints of Power-Sharing Deal
New York Times
No deal was announced to bring an end to the Senate's monthlong deadlock; there were not even hints about what a deal might accomplish. ...
A Lot of Talk; No Action at State SenateWGRZ-TV
Hey, that's no way to treat an amigoAlbany Times Union
Senate leaders won't budge after meeting PatersonNewsday
WKBW-TV
all 140 news articles »


Seattle Post Intelligencer

No pulling punches about Manny Ramirez by house network
Los Angeles Times
On the Dodgers Fox Prime Ticket pregame show, analyst Steve Lyons didn't pull any punches about what he thinks about the return of Manny Ramirez. ...
Ramirez gives no further insight into his drug suspensionOCRegister
Fans need to rethink celebrating Manny's returnCBSSports.com
Kurkjian On Manny's Return To DodgersESPN
OCRegister
all 1,581 news articles »


Mexico Carstens: No Reason For Possible Ratings Cut
Wall Street Journal
VINA DEL MAR, Chile (Dow Jones)--International ratings agencies have no reason to cut Mexico's credit rating as the country's finances are on solid ground, ...
Mexico's Carstens sees no reason for downgradesReuters

all 8 news articles »


Garcia has no plans to be No.2 in Oakland
Yahoo! Sports
Jeff Garcia(notes) didn't sign with the Oakland Raiders to be the No.2 quarterback behind JaMarcus Russell(notes). Garcia has every intention of winning the ...

and more »


Zero tolerance on fireworks, 'no refusal' for DWIs
Dallas Morning News
This is also another "no refusal" weekend in Dallas and other cities throughout the region. Officers will seek warrants to draw blood from those suspected ...

and more »


Knicks meet with Kidd, but make no contract offer
SI.com
Walsh told reporters that no contract offer was made to Kidd, who is exploring his options. The Mavericks also are interested in keeping Kidd, ...

and more »


Road trip no holiday for Cannons
Boston Herald
“Kip was the No. 1 goalie coming into the season, but this is professional sports,” said Daye. “My No. 1 job is to win games and make sure we have the ...

and more »


New Treatment For Receding Gums: No Pain, Lots Of Gain
Science Daily (press release)
ScienceDaily (July 4, 2009) — Tufts dental researchers conducted a three-year follow-up study that examined the stability of a treatment option for receding ...

and more »


MiamiHerald.com

No evidence of imminent nkorea missile launch: Hughes
AFP
LONDON (AFP) — Britain's ambassador to Pyongyang said Friday there was currently no evidence that North Korea was preparing to launch a long-range missile, ...
No-good neighborJakarta Post
Moody's: No S.Korea ratings change for now, risks remainForbes
North Korea Shows No Sign of Imminent Missile Launch, US SaysBloomberg
Gather.com
all 4,103 news articles »


Cubs in brief: 'Z' pitches good, but still no 'W'
Chicago Sun-Times
Carlos Zambrano, with four no-decisions in his last five starts, hasn't pitched a winner since June5. ...

and more »

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 

 


 

What PHP Can Do

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.


guardian.co.uk

No Swine Flu At The Trinidad And Tobago Hospitality Institute…
i95.5 FM
The Trinidad and Tobago Hospitality Institute says there are no confirmed cases of Swine Flu at the institution. This follows reports that there was at ...
Swine flu: alert, not yet alarmedCamden Advertiser
H1N1 cases hit 1709; 1485 recoverPhilippine Star
Commentary: Law and Politics: The economy, health and cultureCaribbean Net News
Xinhua -Alternative Health Journal -Xinhua
all 3,073 news articles »


A&M faculty votes 'no confidence' in chancellor
Houston Chronicle
2009 AP COLLEGE STATION, Texas — The Texas A&M University faculty slapped system Chancellor Mike McKinney with a "no confidence" vote just weeks after the ...

and more »


Los Angeles Times

No LAPD officers will be fired in 2007 May Day incident
Los Angeles Times
LAPD officers in riot gear move through the MacArthur park area with batons to clear the area on May 1, 2007 during a May Day protest. ...
LAPD: No officers fired for May Day rally beatingsThe Associated Press

all 305 news articles »


The Morning Leverage: No 'Fun' In 'Fund-raising'
Wall Street Journal
Pacific Corporate Group has become the latest firm to settle with New York Attorney General Andrew Cuomo over the pension pay-to-play ...

and more »


No Justice Today at Guantanamo
Washington Post
"Unfortunately, Fayiz," I tell him, "I have no justice today." The writer is a lieutenant colonel in the Pennsylvania Air National Guard and an Air Force ...

and more »


Aggies' emotional win after bonfire tragedy is No. 9 memory
ESPN
It struggled in a 24-0 loss against Penn State, finishing an 8-4 season that left A&M No. 23 in the Associated Press poll at the end of the season. ...

and more »


Daily Nation

No life jacket, unable to swim, girl of 14 is lone survivor of ...
Mirror.co.uk
Islanders have complained for years about Yemenia Air planes, saying they have no seatbelts and are so overcrowded passengers have to stand in the aisles. ...
Survivor of air crash tells her storyThe Times
Girl survives Yemeni plane crashThe Detroit News
Black Box Found After Yemen Airline Crash; 'Miracle' 14-Year-Old ...Women on the Web
HotIndieNews.com
all 5,894 news articles »


Netia has no plans to launch buyback in 2009
Reuters
WA has no plans to launch a share buyback in 2009 despite reaching a deal with its banks that would allow the Polish telecoms operator to use a credit line ...

and more »


Topalov Ranked No. 1 Again, but Does That Mean What It Once Did?
New York Times
The official world rankings from the World Chess Federation were released July 1 and there were no surprises. ...

and more »


Study suggests no foul play in funds for priests
Boston Globe
But the accounting firm said there is no indication that money is missing. The firm also said that the archdiocese retained all the records it was required ...

and more »

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