Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

_request(3) [php man page]

_REQUEST(3)								 1							       _REQUEST(3)

$_REQUEST - HTTP Request variables

	An associative array that by default contains the contents of $_GET, $_POST and $_COOKIE.

       +--------+---------------------------------------------------+
       |Version |						    |
       |	|						    |
       |	|		     Description		    |
       |	|						    |
       +--------+---------------------------------------------------+
       | 5.3.0	|						    |
       |	|						    |
       |	|  Introduced request_order. This directive affects |
       |	| the contents of $_REQUEST.			    |
       |	|						    |
       | 4.3.0	|						    |
       |	|						    |
       |	|  $_FILES information was removed from $_REQUEST.  |
       |	|						    |
       | 4.1.0	|						    |
       |	|						    |
       |	|		Introduced $_REQUEST.		    |
       |	|						    |
       +--------+---------------------------------------------------+
       Note

	      This is a 'superglobal', or automatic global, variable. This simply means that it is available in all scopes  throughout	a  script.
	      There is no need to do global $variable; to access it within functions or methods.

       Note

	       When running on the command line , this will not include the argv and argc entries; these are present in the $_SERVER array.

       Note

	       The  variables  in $_REQUEST are provided to the script via the GET, POST, and COOKIE input mechanisms and therefore could be modi-
	      fied by the remote user and cannot be trusted. The presence and order of variables listed in this array is defined according to  the
	      PHP variables_order configuration directive.

       import_request_variables(3), Handling external variables, The filter extension.

PHP Documentation Group 													       _REQUEST(3)

Check Out this Related Man Page

URLDECODE(3)								 1							      URLDECODE(3)

urldecode - Decodes URL-encoded string

SYNOPSIS
string urldecode (string $str) DESCRIPTION
Decodes any % ## encoding in the given string. Plus symbols (' +') are decoded to a space character. PARAMETERS
o $str - The string to be decoded. RETURN VALUES
Returns the decoded string. EXAMPLES
Example #1 urldecode(3) example <?php $query = "my=apples&are=green+and+red"; foreach (explode('&', $query) as $chunk) { $param = explode("=", $chunk); if ($param) { printf("Value for parameter "%s" is "%s"<br/> ", urldecode($param[0]), urldecode($param[1])); } } ?> NOTES
Warning The superglobals $_GET and $_REQUEST are already decoded. Using urldecode(3) on an element in $_GET or $_REQUEST could have unex- pected and dangerous results. SEE ALSO
urlencode(3), rawurlencode(3), rawurldecode(3), RFC 3986. PHP Documentation Group URLDECODE(3)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

server variables in bash scripting

are they any server variables in bash/SSH scripting as is in PHP or Perl, for example in PHP: $_SERVER or $_SERVER I'm trying to retrieve the absolute path of an .SH script I'm running thank you (6 Replies)
Discussion started by: basher400
6 Replies

2. Shell Programming and Scripting

vpath directive in make

Hi all, I need to check the contents of my vpath directive in my file. Is it possible to check the contents of the vpath directive as we do for a variable like @echo '$vpath' . Please let me know the above is correct or suggest me the correct one. Thanks in advance. -Jerry (6 Replies)
Discussion started by: jerryragland
6 Replies

3. UNIX Desktop Questions & Answers

trying to create a script with multiple variables...

I have created a script that prompts the user to enter three variables that are seperated by a space as the delimiter. It then performs a command 3 seperate times for each variable entered. I want the script to llow the user to enter as many variables as they may like and the script to... (5 Replies)
Discussion started by: Italy87
5 Replies

4. Shell Programming and Scripting

comparing content of 2 variables in script

hello how can i compare the content of two variables using the if or for loops. I have 2 variables which was formed as result of commands pass into them but i want to now compare the 2 contents and echo where their is a match for examples variable1=`cat file2` variable2=`cat file3` if #... (5 Replies)
Discussion started by: sam4now
5 Replies

5. AIX

Lowercase to Uppercase

Inside a script I have 2 variables COMP=cy and PT=t. further down the same script I require at the same line to call those 2 variables the first time uppercase and after lowercase ${COMP}${PT}ACE,${COMP}${PT}ace. Can somebody help me Thanks in advance George Govotsis (7 Replies)
Discussion started by: ggovotsis
7 Replies

6. UNIX for Dummies Questions & Answers

Can we optimize this simple script ?

Hi All , I am just a new bie in Unix/Linux . With help of tips from 'here and there' , I just created a simple script to 1. declare one array and some global variables 2. read the schema names from user (user input) and want2proceed flag 3. if user want to proceed , keep reading user... (8 Replies)
Discussion started by: rajavu
8 Replies

7. UNIX for Dummies Questions & Answers

Problem assigning variables to arrays

Hi All, I have a problem assigning variables to script.I have a script in which i have a while loop now i have to assign some values obtained to an array which will be used later in the script.Can anyone help how to do that. At present my scrot looks like: co=0 pco=0 co=`cat /tmp/highcpu... (4 Replies)
Discussion started by: usha rao
4 Replies

8. Shell Programming and Scripting

Read the contents of a file and store them in a variable

Hi Gurus, I am trying for a scenario where in I want to read the contents of a file line by line and then store them in variables. Below is the script: #!/bin/ksh while read line do id=`echo $line | cut -f1 -d |` name=`echo $line | cut -f2 -d |` echo $id ... (11 Replies)
Discussion started by: svajhala
11 Replies

9. Shell Programming and Scripting

Copy file and evaluate its internal variables

Hi I have been trying to figure a way to copy a file, (a template), that has internal variables. Using the values as defined for those variables in another script. So a file called x - #! /bin/bash D=aa.$X.bb And file y #! /bin/bash X=6 while read line do eval echo... (5 Replies)
Discussion started by: steadyonabix
5 Replies

10. UNIX for Dummies Questions & Answers

Passing Global Shell variables to awk

Hi All, Iam trying to pass global shell variables and is not working Main script is like below CYEAR=`date +"%y"` CFYEAR=`date +"%Y"` CMONTH=`date +"%m"` if then PMONTH=12 PYEAR=`expr $CYEAR - 1` PFYEAR=`expr $CFYEAR - 1` else PMONTH=`expr... (6 Replies)
Discussion started by: baanprog
6 Replies

11. UNIX for Beginners Questions & Answers

Storing file contents to a variable

Hi All, I was trying a shell script. I was unable to store file contents to a variable in the script. I have tried the below but unable to do it. Input = `cat /path/op.diary` Input = $(<op.diary) I am using ksh shell. I want to store the 'op.diary' file contents to the variable 'Input'... (12 Replies)
Discussion started by: am24
12 Replies

12. UNIX for Dummies Questions & Answers

Storing file contents to a variable

(12 Replies)
Discussion started by: am24
12 Replies

13. UNIX for Beginners Questions & Answers

Bash array variables are changed in loop runtime

I am trying to check whether particular host and port are responding or not. I am using below script to check. but node_port array that i am using in loop is getting replaced with previous iteration value. Script and output is given. Please help me to understanding why node_port values are... (5 Replies)
Discussion started by: tmalik79
5 Replies

14. Shell Programming and Scripting

Use the variables in a python script.

Hi, I have a defined some variables in a configuration file and I want to use those variables in a python script. For example, I have the following variables in a configuration file. Region = North Country = USA CONN_FL=`perl -F= -lane 'print $F if m!^com.cis.b33.team_db_conn!'... (5 Replies)
Discussion started by: svajhala
5 Replies

15. Shell Programming and Scripting

Multidimensional array

I am learning about bash system variables, such as $ , @ and #. I have this piece of script implementing an array and it is doing its job just fine. This is not the only array I will be using. Just for ease of maintenance and more coding I would like to have the arrays in two dimensional... (4 Replies)
Discussion started by: annacreek
4 Replies