Semester 6 - Secure Computing Midterm weeks 5 6

Card Set Information

Author:
djon
ID:
285580
Filename:
Semester 6 - Secure Computing Midterm weeks 5 6
Updated:
2014-10-16 01:31:23
Tags:
secure computing
Folders:

Description:
slides 5 6 for midterm
Show Answers:

Home > Flashcards > Print Preview

The flashcards below were created by user djon on FreezingBlue Flashcards. What would you like to do?


  1. what does php stand for?
    hypertext preprocessor
  2. describe php
    • a server-side scripting language
    • allows you to create dynamic web pages
  3. script vs. programming languages
    • script: interpreted line by line every run
    • programming language: compiled from source code to binary then delivered as a program
  4. scripting vs programming language variables
    • scripting: typeless
    • programming language: declared as a particular type and have memory allocated to them
  5. using constants in php
    • define()
    • define("PI", 3.14);
  6. 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
  7. used to concatenate strings....
    used to append another string...
    • .
    • .=
  8. 3 types of arrays in php
    • numeric
    • associative
    • multidimensional
  9. numeric array
    • an array with a numeric index
    • $arr[0] = 'Sam';
  10. associative array
    • an array where each ID key is associated with a value
    • $prices=array('Honda'=>20000, 'BMW=>40000);
  11. multidimensional array
    • an array containing one or more arrays
    • $families = Array('Griffin' => Array( 'Peter', 'Louis'), 'Quagmire' => Array('Glenn'));
  12. are php functions case sensitive?
    no
  13. php: assign by reference
    there is no memory being accessed, they are merely copying each other.
  14. print_r()
    • adds <pre> tags
    • this displays the information in human readable form
  15. $_GET
    • a superglobal array
    • used to collect values from a form
    • visible to everyone by showing up in the url
    • 256 character limit
  16. $_POST
    • superglobal array
    • collect values from a form
    • insvisible to everyone
    • no limits
  17. $_REQUEST
    • superglobal array
    • used to get the result of data sent with $_GET, $_POST and &_COOKIE
  18. $_SERVER['PHP_SELF']
    • returns everything after / upto another / or ?
    • using the url: http://example.com/testdir/test.php?my=5
    • the result would be: /testdir/test.php
  19. enctype
    specifies how form-data should be encoded before sending it to the server
  20. two main types of filtering
    filter_var() uses: validation, sanitation
  21. require() vs include() failure handing
    • require() produces a warning
    • include() results in a fatal error
  22. require()
    includes and evaluates a specific file.
  23. output control
    allows to to tell php when to submit information to the browser
  24. ob_...()
    • means it's using buffer
    • ... could be start, flush etc.
  25. encoding
    rules that pair each character with a number and determine how to store it and manipulate it.
  26. unicode
    a character set that includes all characters in every written system.
  27. UTF-16
    • in memory string
    • java, .net, windows
  28. UTF-6
    • storage and protocols
    • .txt, .html. xml
  29. iconv
    • php multibyte
    • uses an external library
    • less protable
  30. mbstring
    • multibyte
    • library bundled with PHP
    • more portable
  31. 2 php multi byte extensions
    • iconv
    • mbstring
  32. relational database
    • RDB
    • data is organized into table
  33. relational
    • refers to the relationship between columns within a tableĀ 
    • also links between tables
  34. php variables
    • can only contain letter, digits and underscores
    • no digit directly after $
    • case sensitive

What would you like to do?

Home > Flashcards > Print Preview