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.
(PHP 4 >= 4.1.0, PHP 5)
import_request_variables -- Import GET/POST/Cookie variables into the global scopeImports GET/POST/Cookie variables into the global scope. It is useful if you disabled register_globals, but would like to see some variables in the global scope.
Using the types parameter, you can
specify which request variables to import. You can use
'G', 'P' and 'C' characters respectively for GET, POST and
Cookie. These characters are not case sensitive, so you
can also use any combination of 'g', 'p' and 'c'. POST
includes the POST uploaded file information. Note that the
order of the letters matters, as when using "gp", the POST
variables will overwrite GET variables with the same
name. Any other letters than GPC are discarded.
The prefix parameter is used as a variable
name prefix, prepended before all variable's name imported into the
global scope. So if you have a GET value named "userid", and provide
a prefix "pref_", then you'll get a global variable named
$pref_userid.
If you're interested in importing other variables into the global scope, such as SERVER, consider using extract().
Note: Although the
prefixparameter is optional, you will get an E_NOTICE level error if you specify no prefix, or specify an empty string as a prefix. This is a possible security hazard. Notice level errors are not displayed using the default error reporting level.
<?php |
See also $_REQUEST, register_globals, Predefined Variables, and extract().
Another Useful functions:
function.xsl-xsltprocessor-import-stylesheet | function.swfmovie.importfont | function.swfmovie.importchar | function.simplexml-import-dom | function.runkit-import | function.pg-lo-import | function.oci-lob-import | function.import-request-variables | function.ibase-blob-import | function.gnupg-import | function.fdf-set-on-import-javascript | function.dom-import-simplexml | function.dom-domdocument-importnode | function.cpdf-import-jpeg | function.classkit-import |
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.