• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/28

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

28 Cards in this Set

  • Front
  • Back
In order to view PHP pages, what criteria must be met?
1. The web server must be configured to run PHP pages.
2. You must upload the file into the proper directory.
3. Your page may need to be error free, or the server may need to be enabled to display errors.
4. Your pages must have the proper file extension (.php)
In what circumstance are php pages able to be viewed?
php pages are only able to be viewed when they are uploaded to a web server.
Why must php pages be uploaded to a web server to be viewed?
PHP was designed to intercept the request for a web page, and process the page first in the PHP pre-processor, and then pass the adjusted page to the Apache server.
How is HTML or any other type of text displayed using PHP?
by using the command print or echo.

for example, <?php print "This is how I use the print command!"; ?>
Is raw HTML code able to go inside PHP tags?
oooooh helllll, no! But with the print command or the echo command you can reproduce nearly any type of HTML

for example, <div align="center"><?php print"<b>This is bold</b>";?></div>
When indicating strings, do you use single or double quotations?
it doesn't matter, just be consistent. However, if you are using a single quotation and use a single quotation within the string an escaping \ must be used.

for example, <?php echo 'We Have a customer named O/'Malley';?>
Give an example of a variable and define it.
$myName = 'Ryan';

Data is stored in memory locations called "variables". In PHP, they start with a $ and can store character data called strings.
Give an example of a string
<?php print "Wow who knew we would have so much fun?";?>
How do you connect a variable to a string?
With a period.
Define Constants
Constants are able to store data like strings or numbers but once filled cannot be changed. Therefore, the name, constant.

for example,

define("SALES_TAX",.089);
print"The rate of sales tax is currently " . SALES_TAX;
In order to view PHP pages, what criteria must be met?
1. The web server must be configured to run PHP pages.
2. You must upload the file into the proper directory.
3. Your page may need to be error free, or the server may need to be enabled to display errors.
4. Your pages must have the proper file extension (.php)
In what circumstance are php pages able to be viewed?
php pages are only able to be viewed when they are uploaded to a web server.
Why must php pages be uploaded to a web server to be viewed?
PHP was designed to intercept the request for a web page, and process the page first in the PHP pre-processor, and then pass the adjusted page to the Apache server.
How is HTML or any other type of text displayed using PHP?
by using the command print or echo.

for example, <?php print "This is how I use the print command!"; ?>
Is raw HTML code able to go inside PHP tags?
oooooh helllll, no! But with the print command or the echo command you can reproduce nearly any type of HTML

for example, <div align="center"><?php print"<b>This is bold</b>";?></div>
When indicating strings, do you use single or double quotations?
it doesn't matter, just be consistent. However, if you are using a single quotation and use a single quotation within the string an escaping \ must be used.

for example, <?php echo 'We Have a customer named O/'Malley';?>
Give an example of a variable and define it.
$myName = 'Ryan';

Data is stored in memory locations called "variables". In PHP, they start with a $ and can store character data called strings.
Give an example of a string
<?php print "Wow who knew we would have so much fun?";?>
How do you connect a variable to a string?
With a period.
where is the M protein found in S. pyogenes?
in the peptidoglycan layer
Define String
String data indicates a sequence of characters that has meaning for the user, but not the program. Placed in single or double quotes.
Does PHP require numerical types to be declared? What type of language is PHP said to be because of this?
No; because PHP doesn't require numerical declarations, it is said to be a "loosely typed" language.
How does one connect a variable to a string and what is that thing called?
A variable is connected to a string with a period which is an operator.
What direction should programming code be read?
Right to left.
Why is the equal sign significant?
It is the assignment operator and functions counter-intuitively. For example, $myTotal = 1 + 2; is expressing that the total value 3 is being assigned to the variable myTotal.
How are two variables compared?
the comparison operator (==)
How would one add one to a variable using compound operators?
using the += operator

for example, $myTotal = $myTotal + 1; is the same as the following:

$myTotal += 1;

since we're adding one to the total you can take it one step further:

$myTotal++;
What's an example of another common compound operator?
$myHTML .= "<strong>Here's some more HTML for you!</b>"; the .= operator is connecting more string data to an existing string inside a variable.