Section 1

Preview this deck

How does PHP retrieve data from the text boxes?

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 14, 2020

Cards (63)

Section 1

(50 cards)

How does PHP retrieve data from the text boxes?

Front

It uses the $_POST array: $variableName = $_POST['nameAttribute'];

Back

What does a client-server architecture consist of?

Front

Servers that share resources with clients over a network

Back

What is the process of requesting a website?

Front

1. A user requests a web page in a web browser 2. The web browser builds a request for the page and sends it to the web server (HTTP Request) 3. The web server receives the request, grabs the web page from disk, and sends it back to the web browser 4. The web browser received the response from the web server (HTTP Response) and displays the page in the web browser

Back

List the four types of database servers.

Front

• MySQL • Oracle • DB2 • MS SQL server

Back

TCP/IP

Front

Transmission Control Protocol/Internet Protocol

Back

PHP automatically _____ string values to numeric data types if the string value contains numeric characters only.

Front

Converts

Back

Which three file/code types are typically needed when creating a PHP application?

Front

HTML, CSS, and PHP

Back

How do you call a PHP file from within your HTML file?

Front

Use the post method inside of the form tag: <form action="PHPfilename.php" method="post">

Back

What is another name for server-side languages?

Front

Scripting languages

Back

What does a web server share?

Front

Websites

Back

What should you do with HTML code that has not been thoroughly validated when retrieving it into your PHP code?

Front

You should escape the string: $variableName = htmlspecialchars($nameAttribute);

Back

A _____ is a device that is connected to two or more networks.

Front

Router

Back

An application directory inside of htdocs is called the

Front

Application root directory

Back

List two ways in which a dynamic website can be changed.

Front

• By processing the form data that the user submits • Displaying data that's retrieved from a database server

Back

A ___ _____ is the client software used to access the web server.

Front

Web browser

Back

What kind of architecture do web applications use?

Front

Client-Server architecture

Back

What is the name of the hardware device that connects a computer to the network?

Front

Network Interface Card, or NIC

Back

Which two protocols does an http request depend on?

Front

HTTP protocol TCP/IP

Back

IIS

Front

Internet Information Services

Back

What is an ISP?

Front

A company that owns a WAN connected to the internet and leases access to its network to those who need access to the internet.

Back

What type of database server is PHP typically used with?

Front

MySQL

Back

If using Xampp, where should you save your files to make them accessible to the web browser?

Front

\xampp\htdocs for the Apache server

Back

How does the web server determine which server or program should process the http request?

Front

It uses the extension of the requested file

Back

Why should you escape string data that hasn't been thoroughly validated?

Front

It prevents a process called a JavaScript injection attack

Back

Where should you develop and test your application?

Front

On your local machine

Back

A _____ ___ ____ is a web page that only changes when the web developer changes it.

Front

Static web page

Back

List the four components of a web application.

Front

• Web browser • Web server • Server-side languages • Database servers

Back

What is a LAN?

Front

Local Area Network; A small network of computers that are physically near each other (typically the same building or site) and can communicate with each other over short distances

Back

List some examples of resources that a server can share with clients.

Front

Files Printers Websites Databases Email

Back

What are the other names for post arrays?

Front

Super global Auto global

Back

When you deploy an application, you...

Front

make it accessible from a browser

Back

What do you call the process that begins with the user requesting a web page and ends with the server sending a response back to the client?

Front

A round trip

Back

What is a dynamic web page?

Front

A page that's created by a program or script that's running on a server. This page can be changed each time it's viewed

Back

What is a WAN?

Front

Wide Area Network; Two or more LANs that have been connected over long distances by the use of routers

Back

List the server-side languages

Front

• PHP • Perl • Python • JSP • ASP.NET

Back

The htdocs directory is called the

Front

Document root directory

Back

What do JSP and ASP.NET require in addition to a web server?

Front

An application server

Back

List the two types of web servers.

Front

• IIS • Apache

Back

How does a router work?

Front

When it receives a packet from one network, it sends the packet out of the network that is closest to the destination network

Back

What do PHP applications run on?

Front

An Apache web server that has a PHP interpreter

Back

A _____ is a communication system that allows clients and servers to communicate.

Front

Network

Back

What type of application servers does the JSP application typically run on?

Front

Tomcat or Glassfish

Back

As best practice, what should you do with the three types of code used to create a PHP application?

Front

Separate the code into separate files

Back

Which two tags does HTML use to create fields for user input?

Front

<label> - names the field <input> - creates an input field to be filled by a user

Back

What causes a web page to change?

Front

The information that's submitted by the web browser to the server

Back

What does the following code do: "$".number_format($nameAttriubte, 2);

Front

It concatenates the dollar sign symbol, $, to the value stored in $nameAttribute

Back

What does escaping your code do?

Front

It converts any special characters that are used by HTML tags to HTML entities

Back

How do you deploy an application on an internet server?

Front

Copy the application directories and files from the local server to your root directory on the internet server

Back

When requesting a PHP page, the web server forwards the request to the ___ _____.

Front

PHP Interpreter

Back

What is an IXP?

Front

Internet Exchange Point; A router at which multiple ISPs connect together to provide access to each others' networks. Technically, this is the name of the routers

Back

Section 2

(13 cards)

What criteria should you use when creating directory and file names for your applications?

Front

Lowercase letters numbers the period underscore

Back

What happens if you do not specify a filename and there is no default file on the web server?

Front

Apache displays a listing of the directories and files within that directory

Back

How do you view a page that's running locally on your computer?

Front

Type localhost into the browser

Back

What happens when the browser does not request a specific file from a web server?

Front

The web server searches for a displays a default file, typically called index

Back

List the 4 components of a URL.

Front

• Protocol (HTTP) • Domain name • Path • Filename

Back

What is the path in a URL?

Front

The directories on the web server in which the webpage file is stored

Back

What is the filename in a URL?

Front

The specific file requested by the web browser

Back

To be able to copy an application's directories and files to an Internet server where it is functional, it is important that the directory structure on the local server is

Front

Exactly the same as the directory structure on the Internet server

Back

How do you view the source code for a web page?

Front

Right-click the page and select 'View Source'

Back

What is the domain name portion of a URL?

Front

The domain identifies the web server that the HTTP request will be sent to

Back

List the default filenames typically used by an Apache web server.

Front

index.html index.htm index.php

Back

What does the web browser use if you omit the protocol when entering a URL

Front

HTTP

Back

URL

Front

Uniform Resource Locator

Back