recent searches:
include functions ,
variable functions ,
post functions...
If you are new to PHP or just need to refresh your skills, this is the place to start. This series of tutorials will give you the basic knowledge you will need to create a simple PHP website.
PHP is a reflective programming language originally designed for producing dynamic web pages.[1] PHP is used mainly in server-side scripting, but can be used from a command line interface or in standalone graphical applications. Textual User Interfaces can also be created using ncurses.
These functions are only available when running PHP as an Apache module.
Note: As of PHP 4.3.2,
PATH_TRANSLATEDis no longer set implicitly under the Apache 2 SAPI in contrast to the situation in Apache 1, where it's set to the same value as theSCRIPT_FILENAMEserver variable when it's not populated by Apache. This change was made to comply with the CGI specification thatPATH_TRANSLATEDshould only exist ifPATH_INFOis defined.Apache 2 users may use AcceptPathInfo = On inside httpd.conf to define
PATH_INFO.
For PHP installation on Apache see the installation chapter.
The behaviour of the Apache PHP module is affected by settings in php.ini. Configuration settings from php.ini may be overridden by php_flag settings in the server configuration file or local .htaccess files.
Table 1. Apache configuration options
| Name | Default | Changeable | Changelog |
|---|---|---|---|
| engine | "1" | PHP_INI_ALL | Available since PHP 4.0.5. |
| child_terminate | "0" | PHP_INI_ALL | Available since PHP 4.0.5. |
| last_modified | "0" | PHP_INI_ALL | Available since PHP 4.0.5. |
| xbithack | "0" | PHP_INI_ALL | Available since PHP 4.0.5. |
Here's a short explanation of the configuration directives.
engine
booleanTurns PHP parsing on or off. This directive is really only useful in the Apache module version of PHP. It is used by sites that would like to turn PHP parsing on and off on a per-directory or per-virtual server basis. By putting engine off in the appropriate places in the httpd.conf file, PHP can be enabled or disabled.
child_terminate
booleanSpecify whether PHP scripts may request child process termination on end of request, see also apache_child_terminate().
last_modified
booleanSend PHP scripts modification date as Last-Modified: header for this request.
xbithack
booleanParse files with executable bit set as PHP regardless of their file ending.
This extension has no resource types defined.
This extension has no constants defined.
Another Useful functions:
security.apache | ref.apache | install.windows.apache2 | install.windows.apache1 | install.unix.apache2 | function.apache-setenv | function.apache-response-headers | function.apache-reset-timeout | function.apache-request-headers | function.apache-note | function.apache-lookup-uri | function.apache-getenv | function.apache-get-version | function.apache-get-modules | function.apache-child-terminate |
PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the introductory tutorial. After that, check out the online manual, and the example archive sites and some of the other resources available in the links section.