PHP运行于,PHP运行于Apache 模块方式

PHP运行于Apache 模块方式

php_value error_reporting 30711 #bitmask is the same as

php_value error_reporting "E_ALL & ~E_STRICT & ~E_NOTICE" #string of constants

up

down

-9 rohitkumar at cftechno dot com ?5 years ago

Open php.ini from c:/php in your text editor

If you installed Apache in the default location, the path should

be "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs". If you installed

it elsewhere, find the htdocs folder and type its path:

doc_root = "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs"

Just a little further down in the file, look for the line that begins with remove the semicolon from the start of the extension_

dir, and set it so that it points to the ext subfolder of your PHP folder:

extension_dir = "C:\PHP\ext"

These are optional extensions to PHP, disabled by default. We

want to enable the MySQL extension so that PHP can communicate with MySQL.

To do this, remove the semicolon from the start of the php_mysqli.dll line:

extension=php_mysqli.dll

note - php_mysqli, not php_mysql

Keep scrolling even further down in the file, and look for a line that starts with

;session.save_path. Once again, remove the semicolon to enable this line,

and set it to your Windows Temp folder:

session.save_path = "C:\Windows\Temp"

Browse to the conf subfolder in your Apache

installation folder (by default, C:\Program Files\Apache Software

Foundation\Apache2.2\conf), and select the httpd.conf file located there. In order

to make this file visible for selection, you’ll need to select All Files (*.*) from the

file type drop-down menu at the bottom of the Open window.

Look for the existing line in this file that begins with DirectoryIndex, shown

here:

DirectoryIndex index.html

This line tells Apache which filenames to use when it looks for the default page

for a given directory. Add index.php to the end of this line:

DirectoryIndex index.html index.php

All of the remaining options in this long and intimidating configuration file

should have been set up correctly by the Apache install program. All you need

to do is add the following lines to the very end of the file:

LoadModule php5_module "C:/PHP/php5apache2_2.dll"

AddType application/x-httpd-php .php

PHPIniDir "C:/PHP"

Make sure the LoadModule and PHPIniDir lines point to your PHP installation

directory, and note the use of forward slashes (/) instead of backslashes (\) in

the paths.

Save your changes and Restart Apache using the Apache Service Monitor system tray icon. If all is

well, Apache will start up again without complaint.

up

down

-10 ohcc at 163 dot com ?3 years ago

You will fail if you try to change configuration settings of PHP with   the php_value directive in Apache 2.4.

up

down

-10 andy at ddtechnologies dot com ?3 years ago

Registry Key Handling Through PHP:

This is an ready to use code. You just need to copy this code into a PHP file.

//php Code starts from here......

//Reading the Registry

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值