PHP

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

What symbol is used to mean "not" in PHP? This symbol is used in both logical and comparison operators to mean "not".

!

What is the JavaScript symbolic equivalent for what the "." is doing on line 4 of the following code? Which symbol is used in JavaScript to perform the same operation? 1 <?php 2 $fiddle = "pinkie"; 3 $waffle = "tickle"; 4 $flarg = $waffle . $fiddle; 5 ?>

+

What is the one symbol that will work for commenting code in JavaScript, PHP, and CSS, but not in HTML?

//

Legal variable names: (4)

1. The first character must be a dollar sign ($) 2. Must be at least ONE character in length 3. The first character after the dollar sign can be A LETTER or an UNDERSCORE (_), and character after that can be a letter, an underscore, or a number 4. Spaces and special character other that _ and $ are not allowed in any part of a variable **Should keep variables in all lowercase and separate multi-word variable names with underscore

echo

A PHP command that is used to output content, such as pure text or HTML code

$_POST

A built-in PHP array that stores data that has been submitted using the "post" method Holds form data

HTML

A markup language used to describe the structure of web page content that is viewed in a web browser

superglobal

A name used to describe built-in PHP variables that are accessible to all scripts

PHP

A programming language used to create scripts that run on a web server A server-side scripting language that lets you manipulate web page content on the server before a page is delivered to the client browser

web form

A series of input fields on a web page that is used to get information from users

web server

A software application for delivering web pages that acts as the SERVER SIDE of web communications

browser

A software application for viewing and interacting with web pages that acts as the CLIENT SIDE of web communications

variable

A storage location or a CONTAINER in a PHP script that has its own UNIQUE name and data type Must start with a dollar sign.

array

A type of PHP data storage that allows you to store multiple pieces of information in a single place Each value has an index that you can use to access it.

quotes

All strings must be enclosed within these

HTML acts on the...

CLIENT; html web pages come from a web brower and its filled out and processed entirely on the user's web browser Client isnt equipped to deliver form data

True or false: you can generate HTML & JavaScript on the fly using PHP to run in the browser, and you can generate PHP on the fly using JavaScript which will run on the server.

FALSE

server-side

Interpreted by a web server, not a client machine

client-side

Interpreted solely by the client web browser

When choosing how to enclose your strings in PHP, use a pair of single quotes for ________ and a pair of double quotes for __________.

Literal strings, variable interpolation

What does PHP stand for?

Originally stood for: Personal Home Pages Changed to: PHP: Hypertext Processor

PHP must live on a ......?

SERVER, PHP scripts and web pages that rely on the scripts MUST BE PLACED ON A REAL WEB SERVER, as opposed to just opening a script directly from a local file system

PHP acts on the...

SERVER; runs on the server to process the form data

which technology is closest to php in its function?

Sun's Java Server Pages

what happens to the PHP code after it is executed on the server?

The php code is processed and then it is stripped from the page before the HTML is returned to the browser.

<?php?>

These tags are used to enclose PHP code so that the web server knows to process it and run it

How do you concatenate multiple strings together?

To create a new single string add period in between previous strings (.)

Escape characer

Used to represent characters in PHP code that are difficult to type or that might conflict with other code, such as \n (new lines)

Do all web pages originate on the server? Even just HTML pages?

Yes, all files for a web site are stored on the server, but they aren't all PROCESSED by the server

A form element's ACTION attribute connects...

a form to a PHP script, causing the script to run when the form is submitted

newline characters can only be escaped in ....

double-quoted strings

What is the name for the way php can interpret a variable inside a string? For example, echo "Hello my name is $name!"; What do we call this technique?

interpolation

Single-quoted strings are considered __________

raw text

Double-quoted strings are looking for________

variables


Ensembles d'études connexes

[ APES ] Ch 13: Water Resources [ P2 ]

View Set

Introduction to Romanticism Quiz

View Set