⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 02-mod_php.sgml

📁 PHPLOB注释详细版 使用模板技术的好帮手 PHP最有用的东东了
💻 SGML
字号:
<!-- $Id: 02-mod_php.sgml,v 1.1.1.1 2000/04/17 16:39:59 kk Exp $ --><sect1>PHPLIB with mod&lowbar;php (Apache module)<p>Installing PHPLIB onto a web server that has PHP3 as a module(actually Apache) mainly differs in where you can set up runtimesettings for PHP3 itself.  PHP3 can be compiled with a wealth ofparameters (see the PHP section in <tt/phpinfo()/), most of which canget overridden by the <tt/php3.ini/ file. The location of thisfile is shows as part of the output of <tt/phpinfo()/.With PHP3 as a module you have a wider choice on placing thesesettings: they are overridden, in this order, by what is definedin <tt/httpd.conf/ and in your per-directory <tt/.htaccess/file. Directives in these files are identical to their<tt/php3.ini/ brothers, but are prefixed with <tt/php&lowbar;/to avoid clashes with Apache configuration keywords. Also, asthey are Apache configuration keywords, they have no equals("=") sign in them. If <tt/x=y/ is a configuration directivefrom <tt/php3.ini/, you should be using <tt/php3&lowbar;x y/within the Apache configuration instead. That is, you shouldprepend <tt/php3&lowbar;/ to the keyword and omit the equalssign. If you misspell a configuration directive, you will get anerror 500 from your webserver and find more details about theerror in the logfile you configured with <tt/ErrorLog/ in yourwebserver setup.<em/Example:/ If below we talk about setting in your<tt/php3.ini/ the configuration<tscreen><code>include_path = "/bla"</code></tscreen><tt/mod&lowbar;php/ users may alternatively configure in their<tt/httpd.conf/ the following:<tscreen><code>&lt;Directory /home/www/servers/phplib.netuse.de/pages&gt;php3_include_path "/bla"&lt;/Directory&gt;</code></tscreen>Of special interest to PHPLIB users are the followingdirectives:<tscreen><code>;;;;;;;;;;;;;;;;;; Data Handling ;;;;;;;;;;;;;;;;;;magic_quotes_gpc = Off    ; magic quotes for incoming                           ; GET/POST/Cookie datamagic_quotes_runtime = Off; magic quotes for runtime-generated data,                          ; e.g. data from SQL, from exec(), etc.magic_quotes_sybase = Off ; Use Sybase-style magic quotes                           ; (escape ' with '' instead of \')track_vars = On           ; enable $PHP_GET_VARS[], $PHP_POST_VARS[]                           ; and $PHP_COOKIE_VARS[] arrays; automatically add files before or after any PHP 3.0 documentauto_prepend_file = (add path to prepend.php3 here)auto_append_file  =;;;;;;;;;;;;;;;;;;;;;;;;;; Paths and Directories ;;;;;;;;;;;;;;;;;;;;;;;;;;include_path      = (add path to the directory with all .inc files)</code></tscreen>All of this comes very handy when you have multiple virtualhosts (e.g. you are an ISP). In this case you can comfortablyplace the php3 directives in the <tt/&lt;VirtualHost&gt;/ blockor in an <tt/.htaccess/ file in the client directory.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -