What is php:
PHP, is the abbreviation of English Super Text preprocessing language hypertext preprocessor. PHP is an HTML embedded language, is a server-side implementation of embedded HTML document scripting language, language style has similar to C language, is widely used.
PHP is the network is often said backstage, used to deal with databases, and so on, many websites are written in PHP, including www.baidu.com,www.jb51.net and other websites, are written in PHP language. Our articles are uploaded to the server database via PHP code and then generated statically by PHP code.
How to open PHP file:
A simple word like txt (text document), Notepad can open, but see the code, not the effect of PHP, for example, we open the test.php code because it is encoded in GBK or UTF8 format, with Notepad to open the UTF8 format php file, When there is a Chinese time is garbled, so we recommend to use Dreameweaver or editplus support UTF8 format files to open the software. (Ordinary users choose EditPlus open can, because editplus relatively small)
A section of PHP test code
Copy the code code as follows:
for ($i =1; $i <=10; $i + +) {
echo $i. '
';
}
echo "Www.jb51.net";
?>
But people often do not want to see such a code, if you want to see the effect after the execution, you need to configure the PHP environment.
Everyone access to the www.jb51.net are server-side pre-configured PHP operating environment, may be Linux or Windows, everyone in the purchase of space when asked IDC, ask if they support PHP, or later to buy a space that does not support PHP, is also unable to support PHP.
If you are local test PHP code, you can use some tools such as Phpnow (Phpnow installation is relatively simple, install the PHP file to the Htdocs directory, in the browser to enter http://127.0.0.1, IIS can also, but requires a bit of professional staffing, if the port needs to be joined to Port http://127.0.0.1: ports. Here we also provide you with the IIS PHP Runtime environment. If you have IIS on your computer, the general default PC is not installed, and the operating system that supports IIS is generally a winxp,win2003 system.
If you set up a PHP runtime environment, enter the Web address in the browser, you can see the effect of PHP (note: Everyone in the browser input URL may be different, we this is the intranet IP)
A lot of friends without foundation, often ask PHP file how to open, in fact, PHP is a web script, but different from the HTML XML tag language, directly can be opened through the browser, need to have PHP run environment to access and open the file, if just edit php open file, Just use Notepad or the relevant editor (DW, eclipsephp, EditPlus, etc.) to open the edits.
Again to introduce PHP is what, add PHP basic Knowledge, PHP, is the English Super text preprocessing language hypertext preprocessor abbreviation. PHP is an HTML embedded language, is a server-side implementation of embedded HTML document scripting language, language style has similar to C language, is widely used. Another implication of PHP is the standard symbol of the Philippine peso.
When we learn the website construction, the initial contact is certainly the HTML language, dynamic language is certainly ASP. But with the development of the network, as well as the change of host direction, especially the overseas host more or Linux system, win system is very few, and very expensive. So forcing us also to choose Linux Host, using PHP language program. Some friends ask questions about how the PHP language Web site opens. The problem is very simple, we can open it with DW or EditPlus or Notepad, regardless of the language page.
But debugging PHP program is different from ASP so simple, we can directly in PHP space debugging or install the local environment, I now use the Phpnow or Wampserver, is a good tool.
http://www.bkjia.com/PHPjc/446960.html www.bkjia.com true http://www.bkjia.com/PHPjc/446960.html techarticle What is php:php, is the abbreviation of English Super Text preprocessing language hypertext preprocessor. PHP is an HTML embedded language, is a server-side implementation of the embedded HTML document ...