PHP 4

[ PHP ]

(!!! Teleportom!!!)
: fopen, msql_num_fields, socket_write ...


3.

(php3.ini PHP 3.0 php.ini PHP 4.0) PHP. PHP web-. CGI CLI- .

php.ini (. FAQ), CGI CLI- -c (. PHP . PHPRC php.ini.

3-1. php.ini

;        ; 
[php] ;   (   )  
; Boolean-     true, on, yes
;   false, off, no, none
register_globals = off
magic_quotes_gpc = yes

;       
include_path = ".:/usr/local/lib/php"

;   (\)   ,    
include_path = ".;c:\php\lib"

PHP Apache- , Apache .htaccess. "AllowOverride Options" "AllowOverride All").

PHP 3.0 Apache, php3.ini, "php3_".

PHP 4.0 Apache, PHP Apache.

php_value name value

.

php_flag name on|off

.

php_admin_value name value

. "Admin" Apache, .htaccess-.

php_admin_flag name on|off

.

3-2. Apache
<IfModule mod_php4.c>
php_value include_path ".:/usr/local/lib/php"
php_flag safe_mode on
</IfModule>
<IfModule mod_php3.c>
php3_include_path ".:/usr/local/lib/php"
php3_safe_mode on
</IfModule>

phpinfo(). get_cfg_var().

allow_url_fopen boolean

URL fopen-, URL- . ftp http, zlib .

: 4.0.3. 4.0.3 , --disable-url-fopen-wrapper.

!

Windows : include(), include_once(), require() require_once().

asp_tags boolean

ASP- <% %> <?php ?>. <%= $value %>. . HTML.

: ASP 4.0.3.

auto_append_file string

, /main . , include(), include_path.

none .

: exit(), .

auto_prepend_file string

, /main . , include(), include_path.

none .

cgi_ext string

display_errors boolean

, HTML-, .

doc_root string

" " PHP . , . PHP safe mode, .

engine boolean

Apache- PHP. , PHP- . engine off httpd.conf, ( ) PHP.

error_log string

. syslog, logger. UNIX syslog(3), Windows NT event log. logger Windows 95.

error_reporting integer

. - . .

3-1.
1
2
4
8

7 ( , ).

html_errors boolean

HTML .

open_basedir string

, PHP .

, , fopen gzopen, . , PHP . , symlink.

. , , , /base-directory.

Windows . - . Apache-, open_basedir .

, open_basedir, , . , "open_basedir = /dir/incl" "/dir/include" "/dir/incls", . , . : "open_basedir = /dir/incl/"

: 3.0.7.

.

gpc_order string

GET/POST/COOKIE. : "GPC". "GP", , PHP GET POST .

, PHP 4. variables_order.

variables_order string

EGPCS (Environment, GET, POST, Cookie, Server) . : "EGPCS". "GP", , , GET POST .

. register_globals

ignore_user_abort boolean

TRUE . FALSE, , - .

. ignore_user_abort().

implicit_flush boolean

FALSE . TRUE PHP , . PHP- flush() print() echo() HTML-.

PHP web-, . TRUE, CLI SAPI.

include_path string

, require(), include() fopen_with_path() . PATH: , UNIX - Windows.
3-3. UNIX include_path
include_path=.:/home/httpd/php-lib
3-4. Windows include_path
include_path=".;c:\www\phplib"

. ( ).

isapi_ext string
log_errors boolean

error log . , .

magic_quotes_gpc boolean

magic_quotes GPC- (Get/Post/Cookie). magic_quotes , ' ( ), " ( ), \ ( ) NUL . magic_quotes_sybase , escape- backslash.

magic_quotes_runtime boolean

magic_quotes_runtime , , , , , . magic_quotes_sybase , escape- backslash.

magic_quotes_sybase boolean

magic_quotes_sybase , backslash, magic_quotes_gpc magic_quotes_runtime .

max_execution_time integer

, . . 30.

, sleep() etc. , . set_time_limit().

memory_limit integer

, . .

nsapi_ext string
precision integer

, .

register_argc_argv boolean

PHP, argv argc ( GET-).

. " ". PHP 4.0.0, "on".

post_max_size integer

post-. . this , upload_max_filesize.

, memory_limit . , memory_limit , post_max_size.

register_globals boolean

, EGPCS- (Environment, GET, POST, Cookie, Server) . , . , track_vars - EGPCS- $_ENV, $_GET, $_POST, $_COOKIE $_SERVER /scope.

, AllowOveride All Directory pache, .

short_open_tag boolean

/ (<? ?>). PHP XML, . (<?php ?> ).

sql.safe_mode boolean
track_errors boolean

, $php_errormsg.

track_vars boolean

, Environment, GET, POST, Cookie Server $_ENV, $_GET, $_POST, $_COOKIE $_SERVER.

, PHP 4.0.3 track_vars on.

upload_tmp_dir string

, . , PHP.

upload_max_filesize integer,

. .

user_dir string

, home- PHP-, , public_html.

warn_plus_overloading boolean

, PHP , "" (+) . , ( .).

/Safe Mode

safe_mode boolean

/ PHP. . .

safe_mode_gid boolean

UID (FALSE) GID (TRUE) . . .

safe_mode_exec_dir string

PHP , system() , , , .

safe_mode_include_dir string

UID/GID , ( include_path, ).

debugger.host string

DNS- IP- , .

debugger.port string

, .

debugger.enabled boolean

.

enable_dl boolean

Apache- PHP. / PHP dl() .

. safe_mode open_basedir.

, safe-mode. safe-mode dl().

extension_dir string

PHP .

extension string

PHP.

mSQL

msql.allow_persistent boolean

mSQL-.

msql.max_persistent integer

mSQL- .

msql.max_links integer

mSQL- , .

Postgres

pgsql.allow_persistent boolean

Postgres-.

pgsql.max_persistent integer

Postgres- .

pgsql.max_links integer

Postgres- , .

SESAM

sesam_oml string

BS2000 PLAM-, SESAM. SESAM. BS2000 PLAM ACCESS=READ,SHARE=YES, user id pache-.

sesam_configfile string

SESAM. SESAM-. BS2000 user id pache-.

(. - SESAM):

CNF=B
NAM=K
NOTYPE
sesam_messagecatalog string

SESAM. . SESAM BS2000, .

ACCESS=READ,SHARE=YES, user id pache-.

Sybase

sybase.allow_persistent boolean

Sybase-.

sybase.max_persistent integer

Sybase- .

sybase.max_links integer

Sybase- , .

Sybase-CT

sybct.allow_persistent boolean

Sybase-CT-. on.

sybct.max_persistent integer

Sybase-- . -1, " ".

sybct.max_links integer

Sybase-- , . -1, " ".

sybct.min_server_severity integer

sybct.min_server_severity /warnings. sybase_min_server_severity(). 10, information .

sybct.min_client_severity integer

sybct.min_client_severity . sybase_min_server_severity(). 10, .

sybct.login_timeout integer

, failure/ . , , max_execution_time , . - .

sybct.timeout integer

select_db /query, failure/ . , , max_execution_time , , . .

sybct.hostname string

, , sp_who. none.

Informix

ifx.allow_persistent boolean

Informix-.

ifx.max_persistent integer

Informix- .

ifx.max_links integer

Informix- , .

ifx.default_host string

, ifx_connect() ifx_pconnect().

ifx.default_user string

user id , none ifx_connect() ifx_pconnect().

ifx.default_password string

/password , none ifx_connect() ifx_pconnect().

ifx.blobinfile boolean

TRUE, blob- , FALSE, . ifx_blobinfile_mode().

ifx.textasvarchar boolean

TRUE, TEXT- , FALSE, blob id . ifx_textasvarchar().

ifx.byteasvarchar boolean

TRUE, BYTE- /queries, FALSE, blob id . ifx_textasvarchar().

ifx.charasvarchar boolean

TRUE, CHAR- .

ifx.nullformat boolean

TRUE, NULL- "NULL", FALSE, "". ifx_nullformat().

BC Math

bcmath.scale integer

bcmath-.

Browser Capability

browscap string

browser capabilities-. . get_browser().

Multi-Byte String

mbstring.internal_encoding string

mbstring.internal_encoding - .

mbstring.http_input string

mbstring.http_input - HTTP-.

mbstring.http_output string

mbstring.http_output - HTTP-.

mbstring.detect_order string

mbstring.detect_order - .

mbstring.substitute_character string

mbstring.substitute_character - .

Exif

Exif Unicode JIS , mbstring . . , HTTP-.

exif.encode_unicode string

exif.encode_unicode - UNICODE . ISO-8859-15, - . , mbstring. , mbstring.

exif.decode_unicode_motorola string

exif.decode_unicode_motorola - Unicode- , /image motorola (big-endian). , , mbstring. UCS-2BE.

exif.decode_unicode_intel string

exif.decode_unicode_intel - Unicode- , intel (little-endian). , , mbstring. UCS-2BE. UCS-2LE.

exif.encode_jis string

exif.encode_jis - JIS . - , mbstring.

exif.decode_jis_motorola string

exif.decode_jis_motorola - JIS- , motorola (big-endian). , , mbstring. JIS.

exif.decode_jis_intel string

exif.decode_jis_intel - JIS- , intel (little-endian). , , mbstring. JIS.


C Visual C

: 3119 .

: - |  -