php是网站文件,打开文件看源码,是要用专门的工具的,很多时候如果用记事本打开是乱码,下载个editplus,然后就可以看源码了。
如果想用IE打开,看运行的效果,就要装服务器apache,如果牵扯到数据库还要装mysql,也就是所谓的php+apache+mysql,具体配置:
HP下载地址:
http://www.php.net/downloads.php
MYSQL 6下载:
http://dev.mysql.com/downloads/mysql/6.0.html
http://dev.mysql.com/downloads/gui-tools/5.0.html
ZEND OPTIMIZER下载地址
http://www.zend.com/en/products/guard/downloads
http://www.zend.com/download/144
需要下载的文件:PHP 5.2.6 zip package、PHP 5.2.6 installer
安装APACHE、PHP installer之后,把PHP zip package解压到php installer目录使其支持更多ext功能。
修改httpd.conf:使其支持index.php文件
DirectoryIndex index.html index.html.var index.php
修改php5里面的php.ini:
extension_dir = "d:\php\ext\"
请将 php.ini 中的 short_open_tag 设置为 On
增加:
extension=php_bz2.dll
extension=php_curl.dll
extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_exif.dll
extension=php_fdf.dll
extension=php_gd2.dll
extension=php_gettext.dll
extension=php_gmp.dll
extension=php_imap.dll
;extension=php_interbase.dll
extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_mcrypt.dll
extension=php_mhash.dll
extension=php_mime_magic.dll
extension=php_ming.dll
extension=php_msql.dll
;extension=php_mssql.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_oci8.dll
extension=php_openssl.dll
extension=php_pdo.dll
extension=php_pdo_firebird.dll
extension=php_pdo_mssql.dll
extension=php_pdo_mysql.dll
extension=php_pdo_oci.dll
;extension=php_pdo_oci8.dll
extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
extension=php_pdo_sqlite_external.dll
extension=php_pgsql.dll
extension=php_pspell.dll
extension=php_shmop.dll
extension=php_snmp.dll
extension=php_soap.dll
extension=php_sockets.dll
extension=php_sqlite.dll
;extension=php_sybase_ct.dll
extension=php_tidy.dll
extension=php_xmlrpc.dll
extension=php_xsl.dll
extension=php_zip.dll
配置环境变量Path:C:\php;c:\php\ext;
打开源文件的话,直接用记事本打开就行了。
要是想在浏览器预览成功超文本以后的效果,需要配置相应的工具,没听说
过的话建议你去下个wap5吧,集成的环境,都小白比较容易上手