php-mbstring.x86_64 :(most byte)PHP多字节的支持,国际化使用的时候,所有一般要安装
[root@localhost httpd]# yum install php php-mbstring
[root@localhost httpd]# rpm -ql php
/etc/httpd/conf.d/php.conf
/usr/lib64/httpd/modules/libphp5.so
/var/lib/php/session
/var/www/icons/php.gif php.conf配置文件:
#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
#定义apache不同的工作模型,指代不同的php模块
LoadModule php5_module modules/libphp5.so
LoadModule php5_module modules/libphp5-zts.so
#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddHandler php5-script .php #定义的一个处理器,访问.php的以php5-script来运行
AddType text/html .php #定义类型,访问.php的文件,他都把他当作一个txt/html文档
#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php #定义php默认主页,index.php
#
# Uncomment the following line to allow PHP to pretty-print .phps
# files as PHP source code:
#
#AddType application/x-httpd-php-source .phps index.php语法:
[root@localhost a.com]# vim index.php #网站默认php网页文件
A
www.a.com
#以?> index.php文件一般只包含指令,不包含数据,数据是以另外一种机制实现交互
数据是以数据库的存取实现,达到快速查找及响应