PHP 4.3

Pour utiliser PHP 4.3 à la place de la version d'origine (PHP 4.1.1), changer le "handler" de vos extensions PHP en ajoutant le fichier « .htaccess » une ligne comme celle ci  :

  AddHandler x-script/php-4.3   .php

Il n'est pas utile de mettre cette ligne dans tous les « .htaccess » de vos répertoires, si elle est présente dans un fichier « .htaccess » d'un des répertoire au dessus, elle sera prise en compte par le serveur.

Attention

La variable de configuration PHP register_globals n'est plus à on depuis PHP 4.2.

Exemple

Ci dessous le résultat de phpinfo() :
phpinfo()
PHP Logo

PHP Version 4.3.10


System FreeBSD front3.mut.teaser.net 10.1-RELEASE FreeBSD 10.1-RELEASE #0 r274401: Tue Nov 11 21:02:49 UTC 2014 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
Build Date Feb 26 2013 13:33:29
Configure Command './configure' '--prefix=/usr/local//php-4.3.10' '--with-mysql' '--with-freetype-dir=/usr/local' '--with-png-dir=/usr/local' '--with-gd' '--enable-gd-native-ttf' '--enable-gd-jis-conv' '--with-jpeg-dir=/usr/local' '--with-readline' '--enable-discard-path' '--enable-calendar' '--enable-exif' '--with-t1lib' '--with-iconv' '--enable-pcntl' '--enable-spl' '--with-dom' '--without-pear' '--with-config-file-path=/usr/local/etc' '--with-regex=system' '--with-system-regex' '--enable-versioning' '--with-expat=/usr/local' '--disable-debug' '--with-zlib'
Server API CGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /s/usr-local/etc/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety disabled
Registered PHP Streams php, http, ftp, compress.zlib

Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies


PHP Credits


Configuration

PHP Core

DirectiveLocal ValueMaster Value
allow_call_time_pass_referenceOnOn
allow_url_fopenOnOn
always_populate_raw_post_dataOffOff
arg_separator.input&&
arg_separator.output&&
asp_tagsOffOff
auto_append_fileno valueno value
auto_prepend_fileno valueno value
browscapno valueno value
default_charsetno valueno value
default_mimetypetext/htmltext/html
define_syslog_variablesOffOff
disable_classesno valueno value
disable_functionsno valueno value
display_errorsOnOn
display_startup_errorsOffOff
doc_rootno valueno value
docref_extno valueno value
docref_rootno valueno value
enable_dlOnOn
error_append_stringno valueno value
error_logno valueno value
error_prepend_stringno valueno value
error_reportingno valueno value
expose_phpOnOn
extension_dir/usr/local//php-4.3.10/lib/php/extensions/no-debug-non-zts-20020429/usr/local//php-4.3.10/lib/php/extensions/no-debug-non-zts-20020429
file_uploadsOnOn
gpc_orderGPCGPC
highlight.bg#FFFFFF#FFFFFF
highlight.comment#FF8000#FF8000
highlight.default#0000BB#0000BB
highlight.html#000000#000000
highlight.keyword#007700#007700
highlight.string#DD0000#DD0000
html_errorsOnOn
ignore_repeated_errorsOffOff
ignore_repeated_sourceOffOff
ignore_user_abortOffOff
implicit_flushOffOff
include_path.:.:
log_errorsOffOff
log_errors_max_len10241024
magic_quotes_gpcOnOn
magic_quotes_runtimeOffOff
magic_quotes_sybaseOffOff
max_execution_time3030
max_input_time-1-1
open_basedirno valueno value
output_buffering00
output_handlerno valueno value
post_max_size40M40M
precision1414
register_argc_argvOnOn
register_globalsOffOff
report_memleaksOnOn
safe_modeOffOff
safe_mode_exec_dir/usr/local/php/bin/usr/local/php/bin
safe_mode_gidOffOff
safe_mode_include_dirno valueno value
sendmail_fromno valueno value
sendmail_path/usr/local/sbin/sendmail-wrap-mailscore-http/usr/local/sbin/sendmail-wrap-mailscore-http
serialize_precision100100
short_open_tagOnOn
SMTPlocalhostlocalhost
smtp_port2525
sql.safe_modeOffOff
track_errorsOffOff
unserialize_callback_funcno valueno value
upload_max_filesize40M40M
upload_tmp_dirno valueno value
user_dirno valueno value
variables_orderno valueno value
xmlrpc_error_number00
xmlrpc_errorsOffOff
y2k_complianceOnOn

calendar

Calendar support enabled

ctype

ctype functions enabled

domxml

DOM/XML enabled
DOM/XML API Version 20020815
libxml Version 20708
HTML Support enabled
XPath Support enabled
XPointer Support enabled

exif

EXIF Support enabled
EXIF Version 1.4 $Id: exif.c,v 1.118.2.29 2004/11/10 01:44:58 iliaa Exp $
Supported EXIF Version 0220
Supported filetypes JPEG,TIFF

gd

GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
JIS-mapped Japanese Font Support enabled

iconv

iconv support enabled
iconv implementation unknown
iconv library version unknown

DirectiveLocal ValueMaster Value
iconv.input_encodingISO-8859-1ISO-8859-1
iconv.internal_encodingISO-8859-1ISO-8859-1
iconv.output_encodingISO-8859-1ISO-8859-1

mysql

MySQL Supportenabled
Active Persistent Links 0
Active Links 0
Client API version 3.23.49
MYSQL_MODULE_TYPE builtin
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE no value
MYSQL_LIBS no value

DirectiveLocal ValueMaster Value
mysql.allow_persistentOnOn
mysql.connect_timeout6060
mysql.default_hostno valueno value
mysql.default_passwordno valueno value
mysql.default_port33063306
mysql.default_socketno valueno value
mysql.default_userno valueno value
mysql.max_linksUnlimitedUnlimited
mysql.max_persistentUnlimitedUnlimited
mysql.trace_modeOffOff

overload

User-Space Object Overloading Support enabled

pcntl

pcntl supportenabled

pcre

PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 4.5 01-December-2003

posix

Revision $Revision: 1.51.2.2 $

session

Session Support enabled
Registered save handlers files user

DirectiveLocal ValueMaster Value
session.auto_startOffOff
session.bug_compat_42OnOn
session.bug_compat_warnOnOn
session.cache_expire180180
session.cache_limiternocachenocache
session.cookie_domainno valueno value
session.cookie_lifetime00
session.cookie_path//
session.cookie_secureOffOff
session.entropy_fileno valueno value
session.entropy_length00
session.gc_divisor100100
session.gc_maxlifetime14401440
session.gc_probability11
session.namePHPSESSIDPHPSESSID
session.referer_checkno valueno value
session.save_handlerfilesfiles
session.save_path3;/home/php_sessions3;/home/php_sessions
session.serialize_handlerphpphp
session.use_cookiesOnOn
session.use_only_cookiesOffOff
session.use_trans_sidOffOff

standard

Regex Library System library enabled
Dynamic Library Support enabled
Path to sendmail /usr/local/sbin/sendmail-wrap-mailscore-http

DirectiveLocal ValueMaster Value
assert.active11
assert.bail00
assert.callbackno valueno value
assert.quiet_eval00
assert.warning11
auto_detect_line_endings00
default_socket_timeout6060
safe_mode_allowed_env_varsPHP_PHP_
safe_mode_protected_env_varsLD_LIBRARY_PATHLD_LIBRARY_PATH
url_rewriter.tagsa=href,area=href,frame=src,form=,fieldset=a=href,area=href,frame=src,form=,fieldset=
user_agentno valueno value

tokenizer

Tokenizer Support enabled

xml

XML Support active
XML Namespace Support active
EXPAT Version 1.95.6

zlib

ZLib Support enabled
Compiled Version 1.2.5
Linked Version 1.2.5

DirectiveLocal ValueMaster Value
zlib.output_compressionOffOff
zlib.output_compression_level-1-1
zlib.output_handlerno valueno value

Additional Modules

Module Name
readline

Environment

VariableValue
PATH_TRANSLATED no value
PATH_INFO no value
SCRIPT_FILENAME /home/_po/phpinfo/pub/www/php4.3/index.php
ORIG_SCRIPT_FILENAME /home/_po/phpinfo/pub/www/php4.3/index.php
ORIG_SCRIPT_NAME /php4.3/
UNIQUE_ID WhcwoNWiNiIAAVzhZVoAAAAc
SCRIPT_URL /php4.3/
SCRIPT_URI http://www.phpinfo.teaser-hosting.com/php4.3/
HTTP_HOST www.phpinfo.teaser-hosting.com
HTTP_ACCEPT_ENCODING x-gzip, gzip, deflate
HTTP_USER_AGENT CCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
SERVER_SOFTWARE Apache/2.2.22 (FreeBSD) mod_fastcgi/2.4.6 mod_ssl/2.2.22 OpenSSL/0.9.8q DAV/2
SERVER_NAME www.phpinfo.teaser-hosting.com
SERVER_ADDR 213.162.54.34
SERVER_PORT 80
REMOTE_ADDR 54.161.3.96
SERVER_ADMIN you@example.com
REMOTE_PORT 45650
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING a%5B%5D=%3Ca+href%3Dhttp%3A%2F%2Favacve81iqile.blog.com%2F2014%2F09%2F28%2Festate-planning-for-an-easier-future-232922%2F%3Eelder+law%3C%2Fa%3E
REQUEST_URI /php4.3/?a%5B%5D=%3Ca+href%3Dhttp%3A%2F%2Favacve81iqile.blog.com%2F2014%2F09%2F28%2Festate-planning-for-an-easier-future-232922%2F%3Eelder+law%3C%2Fa%3E
SCRIPT_NAME /php4.3/
PATH /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/home/_po/phpinfo/bin
LANG fr_FR.ISO8859-15
TMPDIR /var/tmp
LD_PRELOAD /usr/local/lib/libozo.so
DOCUMENT_ROOT /home/_po/phpinfo/pub/www
MYSQL_DATABASE phpinfo
MYSQL_HOST mysql323.mut.teaser.net
MYSQL323_HOST mysql323.mut.teaser.net
MYSQL50_HOST mysql50.mut.teaser.net
HOME /home/_po/phpinfo
USER phpinfo
PHP_INCLUDE_PATH /home/_po/phpinfo/lib/php:.

PHP Variables

VariableValue
_REQUEST["a"]
Array
(
    [0] => elder law
)
_GET["a"]
Array
(
    [0] => elder law
)
_SERVER["PATH_TRANSLATED"]no value
_SERVER["PATH_INFO"]no value
_SERVER["SCRIPT_FILENAME"]/home/_po/phpinfo/pub/www/php4.3/index.php
_SERVER["ORIG_SCRIPT_FILENAME"]/home/_po/phpinfo/pub/www/php4.3/index.php
_SERVER["ORIG_SCRIPT_NAME"]/php4.3/
_SERVER["UNIQUE_ID"]WhcwoNWiNiIAAVzhZVoAAAAc
_SERVER["SCRIPT_URL"]/php4.3/
_SERVER["SCRIPT_URI"]http://www.phpinfo.teaser-hosting.com/php4.3/
_SERVER["HTTP_HOST"]www.phpinfo.teaser-hosting.com
_SERVER["HTTP_ACCEPT_ENCODING"]x-gzip, gzip, deflate
_SERVER["HTTP_USER_AGENT"]CCBot/2.0 (http://commoncrawl.org/faq/)
_SERVER["HTTP_ACCEPT"]text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
_SERVER["SERVER_SOFTWARE"]Apache/2.2.22 (FreeBSD) mod_fastcgi/2.4.6 mod_ssl/2.2.22 OpenSSL/0.9.8q DAV/2
_SERVER["SERVER_NAME"]www.phpinfo.teaser-hosting.com
_SERVER["SERVER_ADDR"]213.162.54.34
_SERVER["SERVER_PORT"]80
_SERVER["REMOTE_ADDR"]54.161.3.96
_SERVER["SERVER_ADMIN"]you@example.com
_SERVER["REMOTE_PORT"]45650
_SERVER["GATEWAY_INTERFACE"]CGI/1.1
_SERVER["SERVER_PROTOCOL"]HTTP/1.0
_SERVER["REQUEST_METHOD"]GET
_SERVER["QUERY_STRING"]a%5B%5D=%3Ca+href%3Dhttp%3A%2F%2Favacve81iqile.blog.com%2F2014%2F09%2F28%2Festate-planning-for-an-easier-future-232922%2F%3Eelder+law%3C%2Fa%3E
_SERVER["REQUEST_URI"]/php4.3/?a%5B%5D=%3Ca+href%3Dhttp%3A%2F%2Favacve81iqile.blog.com%2F2014%2F09%2F28%2Festate-planning-for-an-easier-future-232922%2F%3Eelder+law%3C%2Fa%3E
_SERVER["SCRIPT_NAME"]/php4.3/
_SERVER["PATH"]/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/home/_po/phpinfo/bin
_SERVER["LANG"]fr_FR.ISO8859-15
_SERVER["TMPDIR"]/var/tmp
_SERVER["LD_PRELOAD"]/usr/local/lib/libozo.so
_SERVER["DOCUMENT_ROOT"]/home/_po/phpinfo/pub/www
_SERVER["MYSQL_DATABASE"]phpinfo
_SERVER["MYSQL_HOST"]mysql323.mut.teaser.net
_SERVER["MYSQL323_HOST"]mysql323.mut.teaser.net
_SERVER["MYSQL50_HOST"]mysql50.mut.teaser.net
_SERVER["HOME"]/home/_po/phpinfo
_SERVER["USER"]phpinfo
_SERVER["PHP_INCLUDE_PATH"]/home/_po/phpinfo/lib/php:.
_SERVER["PHP_SELF"]/php4.3/
_SERVER["argv"]
Array
(
    [0] => a%5B%5D=%3Ca
    [1] => href%3Dhttp%3A%2F%2Favacve81iqile.blog.com%2F2014%2F09%2F28%2Festate-planning-for-an-easier-future-232922%2F%3Eelder
    [2] => law%3C%2Fa%3E
)
_SERVER["argc"]3
_ENV["PATH_TRANSLATED"]no value
_ENV["PATH_INFO"]no value
_ENV["SCRIPT_FILENAME"]/home/_po/phpinfo/pub/www/php4.3/index.php
_ENV["ORIG_SCRIPT_FILENAME"]/home/_po/phpinfo/pub/www/php4.3/index.php
_ENV["ORIG_SCRIPT_NAME"]/php4.3/
_ENV["UNIQUE_ID"]WhcwoNWiNiIAAVzhZVoAAAAc
_ENV["SCRIPT_URL"]/php4.3/
_ENV["SCRIPT_URI"]http://www.phpinfo.teaser-hosting.com/php4.3/
_ENV["HTTP_HOST"]www.phpinfo.teaser-hosting.com
_ENV["HTTP_ACCEPT_ENCODING"]x-gzip, gzip, deflate
_ENV["HTTP_USER_AGENT"]CCBot/2.0 (http://commoncrawl.org/faq/)
_ENV["HTTP_ACCEPT"]text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
_ENV["SERVER_SOFTWARE"]Apache/2.2.22 (FreeBSD) mod_fastcgi/2.4.6 mod_ssl/2.2.22 OpenSSL/0.9.8q DAV/2
_ENV["SERVER_NAME"]www.phpinfo.teaser-hosting.com
_ENV["SERVER_ADDR"]213.162.54.34
_ENV["SERVER_PORT"]80
_ENV["REMOTE_ADDR"]54.161.3.96
_ENV["SERVER_ADMIN"]you@example.com
_ENV["REMOTE_PORT"]45650
_ENV["GATEWAY_INTERFACE"]CGI/1.1
_ENV["SERVER_PROTOCOL"]HTTP/1.0
_ENV["REQUEST_METHOD"]GET
_ENV["QUERY_STRING"]a%5B%5D=%3Ca+href%3Dhttp%3A%2F%2Favacve81iqile.blog.com%2F2014%2F09%2F28%2Festate-planning-for-an-easier-future-232922%2F%3Eelder+law%3C%2Fa%3E
_ENV["REQUEST_URI"]/php4.3/?a%5B%5D=%3Ca+href%3Dhttp%3A%2F%2Favacve81iqile.blog.com%2F2014%2F09%2F28%2Festate-planning-for-an-easier-future-232922%2F%3Eelder+law%3C%2Fa%3E
_ENV["SCRIPT_NAME"]/php4.3/
_ENV["PATH"]/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/home/_po/phpinfo/bin
_ENV["LANG"]fr_FR.ISO8859-15
_ENV["TMPDIR"]/var/tmp
_ENV["LD_PRELOAD"]/usr/local/lib/libozo.so
_ENV["DOCUMENT_ROOT"]/home/_po/phpinfo/pub/www
_ENV["MYSQL_DATABASE"]phpinfo
_ENV["MYSQL_HOST"]mysql323.mut.teaser.net
_ENV["MYSQL323_HOST"]mysql323.mut.teaser.net
_ENV["MYSQL50_HOST"]mysql50.mut.teaser.net
_ENV["HOME"]/home/_po/phpinfo
_ENV["USER"]phpinfo
_ENV["PHP_INCLUDE_PATH"]/home/_po/phpinfo/lib/php:.

PHP License

This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.