1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
nignag [31]
4 years ago
14

Which of the following that can be use read cookies in PHP?

Computers and Technology
1 answer:
iris [78.8K]4 years ago
8 0

Answer:

a. $_COOKIE

Explanation:

$_COOKIE represents an associative array of Cookie name and value in PHP. For example in the code below we use the $_COOKIE construct to read the value of a cookie called 'testcookie' provided it has already been set.

<html>

<body>

<?php

if(!isset($_COOKIE["testcookie"])) {

   echo "Cookie 'testcookie' is not defined!";

} else {

   echo "Value of 'testcookie' is: " . $_COOKIE["testcookie"];

}

?>

</body>

</html>

You might be interested in
When a user first authenticates with a Kerberos-based server, he/she will receive _________ Group of answer choices a ticket-gra
Reil [10]

Answer:

a ticket-granting-ticket which asserts the authenticity of the user's credentials to other network resources.

Explanation:

Kerberos is an authentication protocol designed to ensure security when communicating over a public or non-secure network by using symmetric key cryptography.

When a user first authenticates with a Kerberos-based server, he/she will receive a ticket-granting-ticket which asserts the authenticity of the user's credentials to other network resources.

3 0
4 years ago
Define a function print total inches, with parameters num_feet and num_inches, that prints the total number of inches. Note: The
GenaCL600 [577]

Answer:

   <em>public static void printTotalInches(double num_feet, double num_inches){</em>

<em>        double inches = 12*num_feet;</em>

<em>        System.out.println("Total value in feets is: "+(inches+num_inches));</em>

<em>    }</em>

This function is written in Java Programming Language. Find a complete program with a call to the function in the explanation section

<em>Explanation:</em>

<em>public class ANot {</em>

<em>    public static void main(String[] args) {</em>

<em>//Calling the function and passing the arguments</em>

<em>    printTotalInches(5,8);</em>

<em>    }</em>

<em>    public static void printTotalInches(double num_feet, double num_inches){</em>

<em>        double inches = 12*num_feet;</em>

<em>        System.out.println("Total value in feets is: "+(inches+num_inches));</em>

<em>    }</em>

<em>}</em>

6 0
3 years ago
One reason to buy a home instead of rent a home is:
vazorg [7]
A is the correct Answer

7 0
4 years ago
Select the correct answer from each drop-down menu.
DerKrebs [107]

Answer:

?

Explanation:

?!?!

3 0
3 years ago
Write the definition of a class Telephone. The class has no constructors, one instance variable of type String called number, an
balu736 [363]

Answer:

The definition of a class Telephone is given as  

public class Telephone // class telephone

{

String number; // variable  number of type string

static int quantity = 250; // variable  quantity  of type int

static double total = 1565.92;  // variable  total  of type double

}

Explanation:

Following is the description of Statement

  • Create a class "Telephone" by using the keyword class.In that class we declared data member .
  • We declared a variable "number" of type "string" which has no constructor.
  • We declared a variable  "quantity" of type "int" which is a static type variable. The static type variable retains the value during the program execution.
  • We declared a variable  "total" of type "double" which is a static type variable. The static type variable retain the value during the program execution .
5 0
4 years ago
Other questions:
  • Which one of the following features can control left and right indents using markers?
    5·2 answers
  • What is the highest education degree available at a community college
    14·1 answer
  • Please Help Fast!!!!!! Brainliest for First to answer!!! Conflict resolution is the process of solving disputes and disagreement
    5·1 answer
  • You are most likely to automatically encode information about
    11·1 answer
  • The _______ is the continuing development of the internet that allows everyday objects embedded with electronic devices to send
    11·1 answer
  • Which is a good guideline to follow when looking for research material on the Internet?
    10·2 answers
  • Mention two hardware groups​
    7·1 answer
  • We cannot imagine a life without the Internet. Imagine that you had to live without being connected to the Internet. Discuss the
    9·1 answer
  • Scott sends his backups to a company that keeps them in a secure vault. What type of backup solution has he implemented?
    5·1 answer
  • if a manager identifies numerous data integrity issues, she/he should consider the reports generated from that data as invalid a
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!