01-23-2015
Normally web developers use PHP for web applications because there are many "superglobal" variables in PHP which are not present in bash or other shell scripts.
See:
PHP Superglobals to learn more about the rich array of super global variables available in PHP.
This User Gave Thanks to Neo For This Post:
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hello 2 all
I can't understand how to insert a perl-script into .shml in a right way. <form> should be working but it's not
doing that: <!--#include virtual="/cgi-bin/script.cgi?filename"-->
filename is a name of the file which script is using
the script is used for a score show (the number... (0 Replies)
Discussion started by: tip78
0 Replies
2. Web Development
hello 2 all
I can't understand how to insert a perl-script into .shml in a right way. <form> should be working but it's not
doing that: <!--#include virtual="/cgi-bin/script.cgi?filename"-->
filename is a name of the file which script is using
the script is used for a score show (the number... (3 Replies)
Discussion started by: tip78
3 Replies
3. Shell Programming and Scripting
I am using Perl CGI. I have created some text fields and getting those values.
But i want if user leave the text field blank when he click on submit button then instead of run a script it should give a popup. Please any body suggest me something..??? (0 Replies)
Discussion started by: Navrattan Bansa
0 Replies
4. Shell Programming and Scripting
hi..i would ask about how to write over data to new file with BASH.
so..assume my data looks like this :
11
12
13
14
15
...and so on. It's always line by line. and that's for the first file.
i want to write over those numbers into second file but by using space. so my second file should be... (5 Replies)
Discussion started by: syalala
5 Replies
5. Shell Programming and Scripting
Hi ...
I am writing a PERL CGI script where firstly i display a Submit button and when i click that, it will display a group of checkbox values and another submit button.
My question is Now, if i click the second submit button, it should get the checkbox values and work with those(do some... (0 Replies)
Discussion started by: gkrish
0 Replies
6. Shell Programming and Scripting
Hi,
I need to compare 2 text files with around 60000 rows and 1 column. I need to compare these and write the mismatch data to 3rd file.
File1 - file2 = file3
wc -l file1.txt
58112
wc -l file2.txt
55260
head -5 file1.txt
101214200123
101214700300
101250030067
101214100500... (10 Replies)
Discussion started by: Divya Nochiyil
10 Replies
7. Shell Programming and Scripting
Hello,
I am looking to hit a URL using curl and click on submit button so that I can get the results. The below is the code
<input name="tos_accepted" id="tos_accepted" class="button" type="submit" value="Yes, I Agree"/>
<input name="tos_discarded" id="tos_discarded"... (1 Reply)
Discussion started by: Kochappa
1 Replies
8. Programming
hi all,
im going to design a web html form so users can input what username and password they want to make the ftp account, once they enter in a username and password they click on the submit button and it submits it to a bash script and then the bash script will run and finish of making the... (3 Replies)
Discussion started by: robertkwild
3 Replies
9. Shell Programming and Scripting
Hi I was hoping some one could help me with a problem I have.
I am trying to collect some information from a web form and save it to a text file.
I found an example on this site that is sort of what I am trying to accomplish, the shell script bellow should echo the input back to the browser... (0 Replies)
Discussion started by: Paul Walker
0 Replies
_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)