First, PHP introduction
PHP, like ASP, is the scripting language that runs on the server side. It is very different from asp:
php |
asp |
|
unix, Linux, win98/nt, etc. |
win98 PWS, NTW Peer Web Server, NTS IIS |
language style |
C language |
Basic language |
cost issue |
free use, and publish the source code |
"> |
... |
> I think, better than ASP |
Second, the installation of PHP
Unzip the downloaded file into a directory (such as: C:\PHP3), then copy the Php3.ini-dist file to your window directory (for example: C:\Windows) and rename the file to Php3.ini. OK, first here, let's skip to the next section to install Apache.
Third, make PHP support MySQL
It's like a downward line in the Php3.ini file.
; Windows Extensions
; Extension=php3_mysql.dll
All you have to do is remove the Extension=php3_mysql.dll ";" and make PHP support the MySQL database.
Four, PHP editing format
1.<? ... ... ? >
2.<?php ...? >
3.<script language=php>
... ...
</script>
4.<% ...%>
But if you're going to do it like you do in 4, like an ASP tag, you have to be in the Php3.ini file to
Asp_tags = Off
To
Asp_tags = On