What can PHP do? What to do with it

Source: Internet
Author: User
Tags gtk what php payflow pro
What can PHP do?
I want to know exactly how powerful PHP is and what PHP can do. Who can satisfy my thirst for curiosity? Thank you

------Solution--------------------
PHP can do anything, PHP scripts are mainly used in the following three areas:

1. Service-side script.
This is the most traditional and most important target area of PHP. The following three points are required to carry out this work:
A, PHP parser (CGI or server module),
B, Web server,
C, web browser.
You need to install and configure PHP when you run the Web server,
You can then use a Web browser to access the PHP program's output, which is to browse the PHP page on the server side.
If you just experiment with PHP programming, all of this can be run in your own home computer.
2. command line script.
You can write a PHP script and do not need any server or browser to run it.
In this way, only the PHP parser is required to execute.
This usage is dependent on cron (Unix or Linux environments)
or Task Scheduler (Windows environment) is the ideal choice for everyday running scripts.
These scripts can also be used to handle simple text.
3. Write desktop applications.
For desktop applications with a graphical interface, PHP may not be the best language,
But if the user is very proficient in PHP and wants to use some of the advanced features of PHP in the client application,
You can use PHP-GTK to write these programs. In this way, you can also write cross-platform applications.
PHP-GTK is an extension of PHP that is not included in the normally published PHP package.
If you are interested in PHP-GTK, please visit their website for more information.

4. PHP can also be used for a wide range of other areas:
PHP also supports leveraging such as LDAP, IMAP, SNMP, NNTP, POP3, HTTP, COM (Windows environments)
Services such as countless agreements.
You can also open the original network port, allowing any other protocol to work together.
WDDX complex data exchange between PHP support and all Web development languages.
With respect to the connection, PHP has supported the immediate connection to the Java object.
And they are free to use as PHP objects.
You can even use our CORBA extension library to access remote objects.
PHP has extremely efficient text processing features,
Supports parsing from POSIX extensions or Perl regular expressions to XML documents.
To parse and access XML documents, PHP 4 supports the SAX and DOM standards,
You can also use the XSLT extension library to transform XML documents.
PHP 5 standardizes All XML extensions based on robust libxm2,
and added SimpleXML and XMLReader support, extending its functionality in XML.

5. If PHP is used in the field of e-commerce,
Will find its cybercash payment, Cybermut, VeriSign payflow Pro
And the MCVE function is very useful for online trading programs.

6. In addition, there are many other interesting extension libraries.
For example: Mnogosearch search engine functions, IRC gateway functions,
Multiple compression tools (gzip, bz2), calendar conversion, translation ...

------Solution--------------------
PHP is a scripting language that, after installing the appropriate PHP interpreter under various systems (such as Windows), can be used in the console to directly line PHP code files (such as PHP helloworld.php). PHP comes with a very wide library of functions, can perform various system calls, and can also connect to the database for operation. After the PHP module is loaded in the Web server (for example, Apache), it can be used to process the Web request by handing the requested PHP file to the PHP interpreter on the server, which can perform various logical operations and judgments and assemble the output into HTML format. The return to the server is eventually returned to the browser for browsing. In simple terms, PHP can be used to write local scripts, handle Web requests, and so on.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.