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
array_key_exists
ARRAY_KEY_EXISTS(3) 1 ARRAY_KEY_EXISTS(3)
array_key_exists - Checks if the given key or index exists in the array
SYNOPSIS
bool array_key_exists (mixed $key, array $array)
DESCRIPTION
array_key_exists(3) returns TRUE if the given $key is set in the array. $key can be any value possible for an array index.
PARAMETERS
o $key
- Value to check.
o $array
- An array with keys to check.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
array_key_exists(3) example
<?php
$search_array = array('first' => 1, 'second' => 4);
if (array_key_exists('first', $search_array)) {
echo "The 'first' element is in the array";
}
?>
Example #2
array_key_exists(3) vs isset(3)
isset(3) does not return TRUE for array keys that correspond to a NULL value, while array_key_exists(3) does.
<?php
$search_array = array('first' => null, 'second' => 4);
// returns false
isset($search_array['first']);
// returns true
array_key_exists('first', $search_array);
?>
NOTES
Note
For backward compatibility, the following deprecated alias may be used: key_exists(3)
Note
For backward compatibility reasons, array_key_exists(3) will also return TRUE if $key is a property defined within an object given
as $array. This behaviour should not be relied upon, and care should be taken to ensure that $array is an array.
To check whether a property exists in an object, use property_exists(3).
SEE ALSO
isset(3), array_keys(3), in_array(3), property_exists(3).
PHP Documentation Group ARRAY_KEY_EXISTS(3)