What can php do? What should I do?

Source: Internet
Author: User
What can php do? I want to know how powerful php is. what can php do? Who can satisfy my curiosity? Thank you. PHP scripts are mainly used in the following three fields: & nbsp; 1. server scripts. This is the most traditional and main target field of PHP. To do this, you must have the following three points: A, PHP parser (what can CGI or php do?
I want to know how powerful php is. what can php do? Who can satisfy my curiosity? Thank you.

------ Solution --------------------
PHP scripts are mainly used in the following three fields:

1. server scripts.
This is the most traditional and main target field of PHP. To do this, you must have the following three points:
A. PHP parser (CGI or server module ),
B. web servers,
C. web browser.
You need to install and configure PHP when running the web server,
Then, you can use a web browser to access the PHP program output, that is, browsing the PHP page on the server.
If you only want to experiment with PHP programming, all these can run on your home computer.
2. command line script.
You can write a PHP script without any servers or browsers.
In this way, only the PHP parser is required.
This usage depends on cron (Unix or Linux environment)
Or the daily running script of Task Scheduler (Windows environment) is ideal.
These scripts can also be used to process simple text.
3. write a desktop application.
For desktop applications with graphic interfaces, PHP may not be the best language,
However, if you are very proficient in PHP and want to use some advanced features of PHP in client applications,
PHP-GTK can be used to write these programs. In this way, you can also compile cross-platform applications.
The PHP-GTK is an extension of PHP and does not include it in a commonly published PHP package.
If you are interested in PHP-GTK, visit its website for more information.

4. PHP can also be used in other wider fields:
PHP also supports the use of LDAP, IMAP, SNMP, NNTP, POP3, HTTP, COM (Windows environment)
And so on.
You can also open the original network port so that any other protocols can work together.
PHP supports WDDX complex data exchange with all web development languages.
For mutual connection, PHP already supports instant connection to Java objects,
And they can be freely used as PHP Objects.
You can even use our extended library of CORBA to access remote objects.
PHP has extremely effective text processing features,
Supports POSIX extension or Perl regular expression to XML Document parsing.
To parse and access XML documents, PHP 4 supports the SAX and DOM standards,
You can also use the XSLT Extension Library to convert XML documents.
PHP 5 standardizes all XML extensions based on robust libxm2,
Added support for SimpleXML and XMLReader, and extended its XML functions.

5. if PHP is used in e-commerce,
They will find their Cybercash payment, CyberMUT, VeriSign Payflow Pro
And MCVE functions are very useful for online transaction programs.

6. There are also many other interesting extension libraries.
For example: mnoGoSearch search engine function, IRC gateway function,
Multiple compression tools (gzip and bz2), Calendar Conversion, translation ......

------ Solution --------------------
PHP is a scripting language. after installing the corresponding PHP interpreter in various systems (such as Windows), you can use commands on the console to directly execute PHP code files (such as php helloworld. php ). PHP comes with many function libraries that can be used to execute various system calls and connect to the database for operations. After the PHP module is loaded on a Web server (such as apache), the PHP interpreter on the server can send the requested PHP file to the server when processing Web requests, you can perform various logical operations and judgments, assemble the output results into HTML format, return them to the server, and finally return them to the browser for browsing. In short, PHP can be used to write local scripts and process Web requests.

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.