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.


The Hindu

No Chidambaram role in 2G plot: court
The Hindu
There was no sufficient ground in Dr. Swamy's plea for seeking the prosecution of Mr. Chidambaram, though he was party to keeping the 2G spectrum prices in 2008 at the 2001 levels and dilution of equity by two companies before the rollout of services, ...
2G case: No evidence suggests P Chidambaram subverted policy, says judge OP SainiTimes of India
Nothing incriminating, no malafide: 2G court clears ChidambaramIndian Express
no criminal culpability of Chidambaram: CBIEconomic Times
IBNLive.com -Moneycontrol.com -Deccan Herald
all 756 news articles »


No. 4 Stanford Extends Two Streaks in 40-Point Win at Arizona
New York Times
Joslyn Tinkle had a career-high 22 points and matched her career best with 11 rebounds, leading five starters in double figures in No. 4 Stanford's 91-51 rout of host Arizona on Saturday, the Cardinal's 17th win in a row. Stanford (20-1, 11-0 Pac-12) ...

and more »


USA TODAY

Northern Iowa stuns No. 12 Creighton at buzzer
USA TODAY
No one could have imagined he would blossom into one of the nation's best players — and Northern Iowa's student section showed their bitterness by booing McDermott when he touched the ball. McDermott was as good as ever, shooting 7 of 11 from the ...

and more »


ABC News

Job growth no guarantee of smooth path for Obama
Vancouver Sun
The problem may not be fatal for the Republicans, but if the growth continues through the spring and summer, "there's no way in the world that you can deny it helps Obama's case," said Whit Ayres, a Republican pollster. The election-deciding question ...
Jobs numbers are good, but no Reagan recovery, GOP saysCBS News
White House: Jobs Report Shows Economy Is HealingABC News (blog)
Good news on jobs is bad news for GOPCNN (blog)

all 2,545 news articles »


Newsday

No. 3 UConn women win 98th in a row at home
Newsday
Click here No. 3 UConn women win 98th in a row at home Published: February 4, 2012 9:05 PM By The Associated Press DOUG FEINBERG (AP Basketball Writer) (AP) -- Stefanie Dolson scored 16 points, Tiffany Hayes had 14 and No.

and more »


New York Daily News

Belichick says no setbacks for Gronkowski
Wall Street Journal
During the hour-long session Friday, players ran no faster than at a trot. Coach Bill Belichick said earlier Friday that Gronkowski had no setbacks after Thursday's practice, his first for the Super Bowl. "He practiced yesterday.
Tom Coughlin has no problem with Super Bowl XLVI trash talk between NY Giants ...New York Daily News
No Kidding: Fairy Dust Can Swing Super BowlNew York Times
Belichick: No setbacks for GronkowskiChicago Tribune

all 15,513 news articles »


Los Angeles Times

Giants vs. Patriots: A Super Bowl with no quit in it
Los Angeles Times
"It says a lot about these teams and their 'no quit' attitudes. "If you ask the Patriots that same question, I am sure they will say the same thing. In the fourth quarter and it is close, they feel like they are going to bring it out because they have ...
No Prayer for Patriots' Tom Brady: Fan's TakeYahoo! Sports
Torn Between Three Teams... No Longer Feeling Like a FoolHuffington Post (blog)
3 keys to a Giants win: No 1 -- Don't beat yourselfCBSSports.com
Chicago Sun-Times -Boston.com (blog)
all 3,563 news articles »


IBNLive.com

No alliance with goondas: Rahul
Calcutta Telegraph
New Delhi, Feb. 4: Rahul Gandhi today declared “we will not ally with thieves and goondas”, worried by the growing perception that the Congress might prop up a Samajwadi Party government in Uttar Pradesh. Although he did not name Mulayam Singh Yadav's ...
No post-poll pact with any party: RahulTimes of India
No post-poll alliance with any party: RahulIndian Express
No post-poll alliance in UP: RahulHindustan Times
NDTV -IBNLive.com
all 828 news articles »


ABC News

No silver lining in housing market as Nevada votes
CNN
"It would be tough to see a silver lining, because a lot of people have been hurt and a lot of people have lost their homes and it's sad to deal with that on a daily basis when people love their home and have done the best they can and there is no hope ...
Gingrich: There's practically no difference between Obama and Romney ...Fox News
Gingrich had no comment on January jobs figures in morning eventmsnbc.com
No Congrats ExplainedTIME
Boston.com -New York Times (blog) -The Atlantic
all 4,275 news articles »


Globe and Mail

Euro zone loses patience with Greece, says no rescue without reforms
Reuters
"If we were to establish that everything has gone wrong in Greece, there would be no new programme, and that would mean that in March they have to declare bankruptcy," he said in advance copy of comments to news weekly Der Spiegel.
Germany: no need for public-sector contribution to Greek bond haircut dealWashington Post

all 1,842 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 

 


 

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.


Chicago Tribune

No practice, so cleat a hot topic
Boston Herald
By Karen Guregian INDIANAPOLIS — Rob Gronkowski may no longer be wearing a walking boot to protect his sprained left ankle. And the Patriots [team stats] tight end may say the ankle is improving. But it's still not good enough to practice, ...
Brady: Avoiding trouble with Giants no secretWall Street Journal
Boley's success should be no surpriseChicago Tribune
No interpretation needed for Vollmer's Super Bowl excitementBoston.com
Fox News
all 10,118 news articles »


USA TODAY

Signing day 2012: Alabama signs No. 1 recruiting class
USA TODAY
Josh Harvey-Clemons, the No. 1-rated linebacker in the country by ESPN.com, announced his decision to attend Georgia on the morning of signing day. By the evening, however, his letter of intent had not arrived in Athens.
The 411 on DGBFOXSports.com

all 425 news articles »


The Nation, Pakistan

No hidden agenda in Afghanistan, says Hina
The Nation, Pakistan
KABUL – Pakistan said Wednesday it had no hidden agenda in Afghanistan and would back a peace process with the Taliban as long as it's driven by Afghans and not other figures on the international stage.Foreign Minister Hina Rabbani Khar visited Kabul ...
Pakistan: 'No Hidden Agenda' in AfghanistanVoice of America
No hidden agenda in Afghanistan: KharPakistan Daily Times
TIME Exclusive: Q&A with Pakistan Foreign Minister Hina Rabbani KharTIME (blog)
BBC News -CBS News -DAWN.com
all 2,531 news articles »


Newsday

Irsay: No rush on Peyton decision
Newsday
Football Newsday > Sports > Football Irsay: No rush on Peyton decision Published: February 1, 2012 7:51 PM By RODERICK BOONE roderick.boone@newsday.com INDIANAPOLIS -- Don't expect a decision on Peyton Manning's fate with the Colts any time soon.
Eli Manning will have trouble measuring up to Peyton no matter what he doesChicago Sun-Times
Peyton Manning says he has no plans to retireWall Street Journal
Colts' Manning has no plans of retiring yetYahoo! Sports
Toronto Sun
all 1,966 news articles »


New York Times

Mitt Speaks. Oh, No!
New York Times
And there's no question, it's not good being poor. ... Here, Mitt Romney demonstrates his capacity for empathy. And we have a safety net to help those that are very poor. But my campaign is focused on middle-income Americans.
Still no GOP goosebumps for a Romney candidacyCBS News
No matter who wins Florida, extended Republican race likelyThe Seattle Times
There's no escaping a hurricane of campaign ads in FloridaLos Angeles Times
The Associated Press -Huffington Post (blog)
all 15,755 news articles »


No. 12 Gar-Field beats Forest Park, 70-34
Washington Post
Senior guard Marcus Knight finished with a career-high 34 points to lead the Indians over Forest Park, 70-34, and improve to 19-0. (/Nick Plum for Synthesis/Koubaroulis LLC) Correction: Clarification: SuperFan badge holders consistently post smart, ...

and more »


USA TODAY

New England Patriots defense no longer a weak link?
USA TODAY
Meet the new no-name Patriots defense that could either prove Sunday against the New York Giants to be the worst defense ever on a Super Bowl stage or the latest tribute to coach Bill Belichick's wizardry. In perhaps the strangest twist, the Patriots ...

and more »


Slate Magazine (blog)

There's No Way Facebook Is Worth $75 Billion-- Maybe $34.5 Billion
Forbes
My internet guru just sent me the arithmetic that shows without any doubt that Facebook can't be worth $75 billion in market cap– much less $100 billion. At that crazy valuation, it might be the short of 2012. Facebook had $3.7 billion in revenues– ...
In IPO Filing, Facebook Names Google as Its No. 1 FoeSlate Magazine (blog)
Goldman Loses Facebook IPO Lead Role After 'Strained' 2011 SaleSan Francisco Chronicle
Facebook IPO filing reveals first look at company's financesSan Jose Mercury News
Washington Post (blog)
all 5,673 news articles »


USA TODAY

Rangers: No Fielder, but Darvish joins team
USA TODAY
"That's no disrespect to Mitch Moreland. Prince is one of a handful of guys that can impact a lineup like that. At 27 years old, it fit where we're going, not just this year, but the next few years. We were interested, but we knew we were going to draw ...

and more »


USA TODAY

Illinois quiets No. 10 Michigan State
USA TODAY
The loss cost the Spartans (17-5, 6-3) a chance to move into first place in the Big Ten with No. 3 Ohio State. Spartans forward Draymond Green spent much of the game on the bench with foul trouble, then was helped from the court with what appeared to ...

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