What does php interact with?
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.
PHP can be used on all major operating systems, including Linux, many Unix variants (including HP-UX, Solaris and OpenBSD), Microsoft Windows, macOS, RISC OS, and probably others. PHP also has support for most of the web servers today. This includes Apache, IIS, and many others. And this includes any web server that can utilize the FastCGI PHP binary, like lighttpd and nginx. PHP works as either a module, or 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 (OOP), or a mixture of them both.
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 using one of the database specific extensions (e.g., for mysql), or using an abstraction layer like PDO, or connect to any database supporting the Open Database Connection standard via the ODBC extension. Other databases may utilize cURL or sockets, like CouchDB.
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.
PHP has useful text processing features, which includes the Perl compatible regular expressions (PCRE), and many extensions and tools to parse and access XML documents. PHP standardizes all of the XML extensions on the solid base of libxml2, and extends the feature set adding SimpleXML, XMLReader and XMLWriter support.
And many other interesting extensions exist, which are categorized both alphabetically and by category. And there are additional PECL extensions that may or may not be documented within the PHP manual itself, like » XDebug.
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.
There are no user contributed notes for this page.
What is PHP?
We can say that PHP is an open source programming and server scripting language that is particularly well adapted to Create Static web pages or Dynamic web pages or may be Web applications and can be includes in HTML codes. It’s used to handle complex content, databases, and session logging, as well as to create entire e-commerce websites. PHP is generally known as Hypertext preprocessor but it was first known as Personal Home Page. It was Designed in 1994 by the programmer named Rasmus Lerdorf. PHP would be relatively simple to learn but you have a clear knowledge of HTML first. PHP is compatible with a variety of databases, including MySQL, PostgreSQL, Oracle, Sybase, Informix, and Microsoft SQL Server, and can communicate with other services through protocols including LDAP, POP3, HTTP, IMAP, and COM. And, PHP operates on a variety of platforms, including Windows, Linux, Unix, and Mac OS X,etc.
Here is some Example of PHP Code!
For more understanding (Youtube referal) –
Now the the first Question comes in every mind is “what are the Uses of PHP”? So I’m explaining this:
What are the Uses of PHP?
The great thing about PHP is that it is incredibly basic for a beginner while still including a wealth of sophisticated features for a seasoned programmer. Don’t be intimidated by the long list of PHP’s capabilities. You should hop right in and begin writing basic scripts in a matter of hours.
So these are the uses of PHP, But, you didn’t know why we use PHP Language, let me explain you in following:
Why we use PHP Language?
You’ve already heard of a few different programming languages, and you’re probably curious why we choose PHP as our poison for web programming. Because PHP has excellent online documentation and a solid function structure. As a result, the language is relatively simple to learn and has a large online community. There are a plethora of forums and guides on different PHP approaches and issues, so you should have no trouble finding assistance if you need it. Here are some basic point.
How PHP works?
The PHP programme interacts with the site server, which is the programme that sends out web pages to the rest of the world. When you type a URL into the address bar of your web browser, you’re telling the web server at that URL to email you an HTML file. The requested file is sent by the web server in response. The HTML file is read by your browser, and then shows the web page. When you press a source on a web page, you’re also requesting a file from the web server. Additionally, when you press a web page button that submits a form, the web server processes a file. When PHP is mounted, the procedure is exactly the same. You submit a file, and the web server, which happens to be running PHP, responds with HTML, because of PHP it all happens. You can under stand this through these steps:-
Step 1 – Client send a page request to the web server.
Step 2 – Web server forwards that request to the PHP interpreter.
Step 3 – Now PHP interpreter will take the Date from Database and responce it back to the Web server.
Step 4 – At last Web server responce to the client who has asked for the page request.
For better understanding you can have a look on this Video this will help you – YouTube referral
PHP Fundamental Tutorials with Basic Demo by Chentan in 2020 – Part-1
PHP Fundamental Tutorials with Basic Demo by Chentan in 2020 – Part-2
What does PHP work with?
PHP is compatible with a variety of databases, including MySQL, PostgreSQL, Oracle, Sybase, Informix, and Microsoft SQL Server, and can communicate with other services through protocols including LDAP, POP3, HTTP, IMAP, and COM.
Does PHP interact with HTML?
PHP and HTML interact a lot: PHP can generate HTML, and HTML can pass information to PHP. Before reading these faqs, it's important you learn how to retrieve variables from external sources. The manual page on this topic includes many examples as well.
What platforms does PHP run on?
PHP runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.) PHP is compatible with almost all servers used today (Apache, IIS, etc.)