Section 1

Preview this deck

reliability

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 1, 2020

Cards (21)

Section 1

(21 cards)

reliability

Front

It's already been used and tested. less likely to cause conflict with existing code

Back

PHP does not support function overloading

Front

true

Back

PHP does not look at the filename extension on the required file

Front

true

Back

function overloading

Front

many languages allow you to reuse function names.

Back

function

Front

is a self contained module of code that prescribes a calling interface, performs some task and optionally returns a value

Back

what kind of elements should be reused

Front

header,vfooter, anything that will appear on multiple pages

Back

write a function that passes a parameter

Front

function_name('parameter');

Back

benefits to using require on websites

Front

Consistent elements across all webpages. You only have to change one file instead of multiple files

Back

readfile()

Front

this function echoes the content of a file without parsing it

Back

you can use multiple include require constructs on a page

Front

true

Back

using require to reuse code

Front

<? require('reusable.php'); ?>

Back

function structure

Front

function example_function(){ //do stuff }

Back

calls to functions are not case sensitive

Front

true

Back

require_once, include_once

Front

The purpose of this construct is to ensure that an included file can be included once.

Back

.inc files will not be interpreted as PHP code unless the web server has been configured specifically for this

Front

true

Back

calling an undefined function will result in _________

Front

an error

Back

call a function with no parameters

Front

function_name();

Back

require vs include

Front

the only difference in them is when they fail the require gives a fatal error while include gives a warning

Back

auto_prepend_file, auto_append_file

Front

you ensure that they will be loaded before and after every page. two configurations in the php.ini file

Back

consistency

Front

reusing code ensures that the code is less work for you. Things like UI will look the same throughout the program

Back

advantages of reusing code

Front

less work, reliability, reduce cost, improve consistency, easier

Back