php环境搭建

php5.5+ apache2.4


php.ini - product 修改为php.ini 设置 搜索extension
   ; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
; extension_dir = "./"
; On windows:
; extension_dir = "ext"

extension_dir = "D:/php/php5.5/ext"

apache2.4
conf 目录下,httpd文件 修改:

LoadModule  php5_module d:/php/php5.5/php5apache2_4.dll
PHPIniDir "d:/php/php5.5"
AddType application/x-httpd-php .php .phtml

再apache 目录htdoc中写一个test.php,然后通过http://localhost/test.php 访问
测试整合成功
<?php
//phpinfo();
date_default_timezone_set('Asia/shanghai');
echo '当前日期是' .date('Y-m-d G-i-s');
?>

http://blog.csdn.net/u012332735/article/details/21691323 php基本操作

你可能感兴趣的:(PHP)