02-12-2018
Quote:
Originally Posted by
crimso
Well thanks for that! Finally it makes sense why I've not been able to do what I thought I should be able to do. So creating the link that launches another script that runs the rpm makes the most sense to get what I want. On the front end it doesn't look any different than what I wanted it just means I need the href line in the original script and the script it calls. Thank-you kindly @Corona688 for chiming in.
You could also do so using the same script, doing different things when called with different parameters. See
http://path/to/script.php?value1=a&value2=b, the $_GET superglobal, and array_key_exists($_GET,"key"
);
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I am a new learner of Unix. I am currently working on a Solaris 8 machine. Earlier, when I use 'cd <folder name>' command, I am not only able to change the folder but also able to see the contents of the folder as if a 'ls -lt' command was executed. However, since a week, suddenly this... (3 Replies)
Discussion started by: mumashankar
3 Replies
2. UNIX for Dummies Questions & Answers
Hi i have just registered
So i am at university studying forensic computing and we have to learn c++
i have never done anything with c++ before and i am abit stuck
i need to create a programme to display the contents of an array of characters forwards and in reverse
Can anyone help me... (1 Reply)
Discussion started by: RossMc
1 Replies
3. Web Development
Dear Friends,
Am an newbie to this domain. I have a table which is filled with contents which i need to be updated with,so am trying to design a flow which would read the data from the table and mail it to me at regular intervals. I could make out the flow using mailx command but want to... (3 Replies)
Discussion started by: gokulj
3 Replies
4. UNIX for Dummies Questions & Answers
Hiii...
I wanna know "What are the contents of a symbolic link?".......
From google I dint get a good answer....that's why I posts here......
Thanking you.
Krishna (1 Reply)
Discussion started by: krishnampkkm
1 Replies
5. Shell Programming and Scripting
Hi one of the output of the command is as below
# sed -n "/CCM-ResourceHealthCheck:/,/---------/{/CCM-ResourceHealthCheck:/d;/---------/d;p;}" Automation.OutputZ$zoneCounter | sed 's/$/<br>/'
Resource List : <br>
*************************** 1. row ***************************<br>
... (2 Replies)
Discussion started by: vivek d r
2 Replies
6. Shell Programming and Scripting
ksh
eg
arrayname=(1 2 3 4 5)
I'm trying to display the individual contents of an array on a new line without using a loop, using one line of code.
output
1
2
3
4
5 (3 Replies)
Discussion started by: squrcles
3 Replies
7. UNIX for Advanced & Expert Users
Hi -
Our system admin cannot create a link to NAS with one particular name but he can create with other names.
What might be the cause?
Regards
---------- Post updated at 11:30 AM ---------- Previous update was at 11:29 AM ----------
It says permission denied. (2 Replies)
Discussion started by: w020637
2 Replies
8. UNIX for Dummies Questions & Answers
<tr><td bgcolor=#D7EBAD><b>Instructions :</b></td>
<td>`cat temp.txt`</td></tr>
Hi Experts,
I have an requirement of displaying file contents in HTML mail , for which am using the above approach, Where as the output is kind of not as expected.
If there are 5 lines in the file, in the... (4 Replies)
Discussion started by: scott_cog
4 Replies
9. Shell Programming and Scripting
I have created one file that contains all the necessary info in it to create a download link. In each of the lines /results/analysis/output/Home/Auto_user_S5-00580-6-Medexome_67_032/plugin_out/FileExporter_out.67... (8 Replies)
Discussion started by: cmccabe
8 Replies
LEARN ABOUT PHP
superglobals
SUPERGLOBALS(3) 1 SUPERGLOBALS(3)
Superglobals - Superglobals are built-in variables that are always available in all scopes
Several predefined variables in PHP are "superglobals", which means they are available in all scopes throughout a script. There is no need
to do global $variable; to access them within functions or methods.
These superglobal variables are:
o$GLOBALS
o$_SERVER
o$_GET
o$_POST
o$_FILES
o$_COOKIE
o$_SESSION
o$_REQUEST
o$_ENV
+--------+---------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------+
| 4.1.0 | |
| | |
| | Superglobals were introduced to PHP. |
| | |
+--------+---------------------------------------+
Note
Variable availability
By default, all of the superglobals are available but there are directives that affect this availability. For further information,
refer to the documentation for variables_order.
Note
Dealing with register_globals
If the deprecated register_globals directive is set to on then the variables within will also be made available in the global scope
of the script. For example, $_POST['foo'] would also exist as $foo.
For related information, see the FAQ titled "How does register_globals affect me?"
Note
Variable variables
Superglobals cannot be used as variable variables inside functions or class methods.
variable scope, The variables_order directive, The filter extension.
PHP Documentation Group SUPERGLOBALS(3)