Teach you how to open php files

WBOY
Release: 2016-07-25 08:51:54
Original
1421 people have browsed it
Teach you how to open php files

Before answering this question, let’s first understand what php is.

PHP is the abbreviation of the English hypertext preprocessing language Hypertext Preprocessor. PHP is an HTML embedded language. It is a scripting language embedded in HTML documents that is executed on the server side. The language style is similar to C language and is widely used.

  PHP is what everyone often calls the backend on the Internet, used to process databases, etc. Many websites are written in PHP. Our articles are uploaded to the server database through PHP code, and then statically generated through PHP code.

How to open php file:

  In a simple sentence, php is the same as txt (text document). Notepad can open it, but what you see is the code, not the effect of php execution. For example, we open the test.php code because the encoding is in gbk or utf8 format. , when using Notepad to open a php file in utf8 format, garbled characters will appear when there are Chinese characters, so we recommend opening it with software that supports utf8 format files such as dreameweaver or editplus. (Ordinary users can choose editplus to open it, because editplus is relatively small)

 A piece of php test code: ​'; } echo "bbs.it-home.org";

 ?>

 If you want to see the execution effect of the above code, you need to configure the PHP running environment.

 The bbs.it-home.org you visit is a pre-configured PHP operating environment on the server side, which may be Linux or Windows.

If you are testing PHP code locally, you can use some tools such as phpnow (phpnow is relatively simple to install and use. After installation, copy the PHP file to the htdocs directory and enter http://127.0.0.1 in the browser. If you select a port, you need to add the port http://127.0.0.1: port number). IIS can also be used, but it requires a slightly more professional person to configure it. Here we also provide you with the iis php operating environment. The premise is that your computer has iis, which is generally not installed on personal computers by default. The operating systems that support iis are generally winxp and win2003 systems.

 If you have set up the PHP operating environment and enter the URL in the browser, you can see the running effect of PHP (Note: the URL you enter in the browser may be different, ours is the intranet IP)

Many friends who have no foundation often ask how to open PHP files. In fact, PHP is a web script, but unlike the HTML xml tag language, it can be opened directly through the browser. You need a PHP running environment to access and open the file. If Just edit PHP to open the file, just use Notepad or a related editor such as (DW, EclipsePHP, editplus, etc.) to open and edit.

  Let’s introduce what PHP is and add some basic knowledge of PHP. PHP is the abbreviation of the English hypertext preprocessing language Hypertext Preprocessor. PHP is an HTML embedded language. It is a scripting language that is embedded in HTML documents and is executed on the server side. The style of the language is similar to C language and is widely used. Another meaning of PHP is: The standard symbol for the Philippine peso.

When we were learning website construction, the language we came into contact with most in the early stage was definitely HTML, and the dynamic language was definitely ASP. However, with the development of the network and the change in the direction of hosts, especially overseas hosts have more LINUX systems, while WIN systems are rare and very expensive. Therefore, we are forced to choose LINUX host and use PHP language program. Some friends asked how to open a website in PHP language. This problem is actually very simple. No matter what language the web page is in, we can open it with DW or EDITPLUS or Notepad.

 Debugging PHP programs is different from ASP. You can debug directly in the PHP space or install a local environment. It is a good choice to use common IDE editing tools and xdebug.



Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!