What file is php

Jul 25, 2016 am 08:53 AM

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 of this Website
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How does session hijacking work and how can you mitigate it in PHP? How does session hijacking work and how can you mitigate it in PHP? Apr 06, 2025 am 12:02 AM

Session hijacking can be achieved through the following steps: 1. Obtain the session ID, 2. Use the session ID, 3. Keep the session active. The methods to prevent session hijacking in PHP include: 1. Use the session_regenerate_id() function to regenerate the session ID, 2. Store session data through the database, 3. Ensure that all session data is transmitted through HTTPS.

Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Explain JSON Web Tokens (JWT) and their use case in PHP APIs. Apr 05, 2025 am 12:04 AM

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

How to debug CLI mode in PHPStorm? How to debug CLI mode in PHPStorm? Apr 01, 2025 pm 02:57 PM

How to debug CLI mode in PHPStorm? When developing with PHPStorm, sometimes we need to debug PHP in command line interface (CLI) mode...

Describe the SOLID principles and how they apply to PHP development. Describe the SOLID principles and how they apply to PHP development. Apr 03, 2025 am 12:04 AM

The application of SOLID principle in PHP development includes: 1. Single responsibility principle (SRP): Each class is responsible for only one function. 2. Open and close principle (OCP): Changes are achieved through extension rather than modification. 3. Lisch's Substitution Principle (LSP): Subclasses can replace base classes without affecting program accuracy. 4. Interface isolation principle (ISP): Use fine-grained interfaces to avoid dependencies and unused methods. 5. Dependency inversion principle (DIP): High and low-level modules rely on abstraction and are implemented through dependency injection.

How to automatically set permissions of unixsocket after system restart? How to automatically set permissions of unixsocket after system restart? Mar 31, 2025 pm 11:54 PM

How to automatically set the permissions of unixsocket after the system restarts. Every time the system restarts, we need to execute the following command to modify the permissions of unixsocket: sudo...

Explain late static binding in PHP (static::). Explain late static binding in PHP (static::). Apr 03, 2025 am 12:04 AM

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

How to send a POST request containing JSON data using PHP's cURL library? How to send a POST request containing JSON data using PHP's cURL library? Apr 01, 2025 pm 03:12 PM

Sending JSON data using PHP's cURL library In PHP development, it is often necessary to interact with external APIs. One of the common ways is to use cURL library to send POST�...

See all articles