Semester 6 - Secure Computing Midterm weeks 5 6
Home > Preview
The flashcards below were created by user
on FreezingBlue Flashcards.
what does php stand for?
- a server-side scripting language
- allows you to create dynamic web pages
script vs. programming languages
- script: interpreted line by line every run
- programming language: compiled from source code to binary then delivered as a program
scripting vs programming language variables
- scripting: typeless
- programming language: declared as a particular type and have memory allocated to them
using constants in php
- define("PI", 3.14);
echo vs print
- echo:faster but can't be used in complex expressions. does not return a value.
- print: returns a value (1) and can be used in complex expressions
used to concatenate strings....
used to append another string...
3 types of arrays in php
- an array with a numeric index
- $arr = 'Sam';
- an array where each ID key is associated with a value
- $prices=array('Honda'=>20000, 'BMW=>40000);
- an array containing one or more arrays
- $families = Array('Griffin' => Array( 'Peter', 'Louis'), 'Quagmire' => Array('Glenn'));
are php functions case sensitive?
php: assign by reference
there is no memory being accessed, they are merely copying each other.
- adds <pre> tags
- this displays the information in human readable form
- a superglobal array
- used to collect values from a form
- visible to everyone by showing up in the url
- 256 character limit
- superglobal array
- collect values from a form
- insvisible to everyone
- no limits
- superglobal array
- used to get the result of data sent with $_GET, $_POST and &_COOKIE
- returns everything after / upto another / or ?
- using the url: http://example.com/testdir/test.php?my=5
- the result would be: /testdir/test.php
specifies how form-data should be encoded before sending it to the server
two main types of filtering
filter_var() uses: validation, sanitation
require() vs include() failure handing
- require() produces a warning
- include() results in a fatal error
includes and evaluates a specific file.
allows to to tell php when to submit information to the browser
- means it's using buffer
- ... could be start, flush etc.
rules that pair each character with a number and determine how to store it and manipulate it.
a character set that includes all characters in every written system.
- in memory string
- java, .net, windows
- storage and protocols
- .txt, .html. xml
- php multibyte
- uses an external library
- less protable
- library bundled with PHP
- more portable
2 php multi byte extensions
- data is organized into table
- refers to the relationship between columns within a table
- also links between tables
- can only contain letter, digits and underscores
- no digit directly after $
- case sensitive
What would you like to do?
Home > Flashcards > Print Preview