Home  >  Article  >  Backend Development  >  What file is php

What file is php

WBOY
WBOYOriginal
2016-07-25 08:53:512254browse
Some netizens asked what file php is? PHP is a server-side scripting language embedded in HTML. What distinguishes PHP from other client-side Java is that its code is executed on the server side.

First, what is php and what can php do?

What file is php PHP can do anything that any other CGI program can do, such as collecting table data, generating dynamic page content, or sending and receiving cookies. Perhaps the most powerful and meaningful feature is PHP's support for a wide range of databases. Writing a database-backed web page is incredibly simple.

Currently supported databases: adabas d interbase solid dbase msql sybase empress mysql velocis filepro oracle unix dbm informix postgresql PHP also supports "talking" to other services through protocols, like imap, snmp, nntp, pop3, and even http. You can also open obscure network interfaces and interact with other protocols.

Second, a brief history of php

In the fall of 1994, rasmus lerdorf began to conceive of PHP. An early non-distribution version was used on his homepage to track who was viewing his online resume. The first version was released in early 1995, when PHP was only considered a personal homepage. Development tool. It consists of a very simple analysis engine that can only understand a few special macros and some common tools used in the backend of the homepage, such as guest books, counters and other things. This analyzer was launched in mid-1995 It was rewritten and named php/fi version 2. fi comes from another package written by rasmus, which is used to interpret data in html form. It combines the personal homepage tool script and form parser, and adds msql support. This way Thus php/fi was born. php/fi grew at an amazing pace, and people began to contribute their own code to it.

It is difficult to give a hard statistic, but it can be estimated that at the end of 1996, at least 15,000 websites in the world were using php/fi. By mid-1997, this number had exceeded 50,000. And in At this time the development of PHP also changed. The project developed by Rasmus himself and several people became a more organized group achievement. EV Suraski and Andi Gutmans rewrote the parser. This new parser became the PHP version The basis of php3. A lot of useful code was inherited from php/fi to php3, and a lot of it was completely rewritten.

Today (mid-1999), both php/fi or php3 are bundled with many commercial products, such as C2-level strength web servers and Red Hat Linux. According to the data provided by netcraft, it is conservatively estimated that the number of websites using php around the world has More than 150,000. So that's more sites on the Internet than there are running Netscape's flagship enterprise server.

What file is php

1.php is a web page file. You need a web server that supports php to open it through a browser. If you really want to open it, you can open it with Notepad, but there are some web page codes inside. You may not be able to read it. 2. What you download is just a webpage that points to (or contains) the ringtone. You have to actually get the address of the ringtone before you can download it.

3. It should not be php, but pdf. Change the suffix. The php file is in web page format and can be opened with a text editor. However, most of the files provided on this site are in pdf format. Install a pdf reader and you can open it normally. .

4. "Change the extension to html and open it with IE."

5. If dreamwaver is installed, the php file will display the styles that dreamwaver can open. But there is no need.

Go to the post you downloaded and see what the extension of the thing you downloaded is. For example, a word document is followed by .doc, a pdf document is followed by .pdf, a compressed document is followed by .rar or .zip, etc. Then replace the extension with .php and it will open

I seem to have encountered this problem before. It seems that when downloading with the download tool, some extensions are not changed back to the original extension by default.

Generally, the things in the forum are not very big, just click to save, and you will not encounter this situation

6. Notepad is enough~~~~~~~~~~ You can also use word or fontpage~ Anyway, it’s all php scripting language~What file is php

The 7.php file is a page file. Its operation requires the support of iss service. If you want to open it in IE browser, you must install the iss service, otherwise it will not run. The iss service is an internet information service. Installation steps: (1) Control Panel - Add and Remove Programs - Add and Remove Components - Internet Information Services - Installation. After the installation is completed, the internet information service component will be generated in the management tool, and the inetpub folder will be generated on the c drive, which contains a wwwroot folder. (2) Place your php file in the wwwroot folder. It must be in this folder. Putting it in other folders will not work. (3) Open the IE browser and enter: http://127.0.0.1/**** in the address bar **** is your php file name. You can also change the php file name to default.asp, so you don’t have to enter the file name and just press Enter. 127.0.0.1 refers to the local machine.

With the above introduction, do you understand what php is?



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn