web developer master reference

6
8/14/2019 Web Developer Master Reference http://slidepdf.com/reader/full/web-developer-master-reference 1/6 Comments <!-- Comment Text --> Core Attributes class id Note: Core Attributes may not be used in base, head, html, meta, param, script, style or title elements. style title Language Attributes dir Note: Language Attributes may not be used in base, br, frame, frameset, hr, iframe, param or script elements. lang Keyboard Attributes accesskey tabindex Form Events onBlur onChange onFocus onReset onSelect onSubmit Window Events onLoad onUnload Keyboard Events onKeydown onKeypress onKeyup Mouse Events onClick onDblclick onMousedown onMousemove onMouseout onMouseover onMouseup Document Outline <!DOCTYPE> <html> <head> <body> Version of (X)HTML HTML document Page information Page contents Common Character Entities &#34; &#38; &#60; &#62; &#64; &#128; &#149; &#153; &#163; &#160; &#169; " < > @ £ © Quotation mark Ampersand Less than Greater than "At" symbol Euro Small bullet Trademark Pound Non-breaking space Copyright symbol Links <a href=""> <a href="mailto:"> <a name="name"> <a href="#name"> Page link Email link Anchor Link to anchor Empty Elements <area /> <base /> <br /> <col /> <hr /> <img /> <input /> <link /> <meta /> <param /> Page Information <base /> <meta /> <title> <link /> <style> <script> Base URL Meta data Title Relevant resource Style resource Script resource Tables <table> <caption> <thead> <tbody> <tfoot> <colgroup> <col /> <tr> <th> <td> Table Caption Table header Table body Table footer Column group Column Table row Header cell Table cell Forms <form> <fieldset> <legend> <label> <input /> <select> <optgroup> <option> <textarea> <button> Form Collection of fields Form legend Input label Form input Drop-down box Group of options Drop-down options Large text input Button Objects <object> <param /> Object Parameter Document Structure <h[1-6]> <div> <span> <p> <br /> <hr /> Heading Page section Inline section Paragraph Line break Horizontal rule Lists <ol> <ul> <li> <dl> <dt> <dd> Ordered list Unordered list List item Definition list Definition term Term description Text Markup <strong> <em> <blockquote> <q> <abbr> <acronym> <address> <pre> <dfn> <code> <cite> <del> <ins> <sub> <sup> <bdo> Strong emphasis Emphasis Long quotation Short quotation Abbreviation Acronym Address Pre-formatted text Definition Code Citation Deleted text Inserted text Subscript Superscript Text direction Images and Image Maps <img /> <map> <area /> Image Image Map Area of Image Map

Upload: 29oberon

Post on 30-May-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Web Developer Master Reference

8/14/2019 Web Developer Master Reference

http://slidepdf.com/reader/full/web-developer-master-reference 1/6

Comments

<!-- Comment Text -->

Core Attributes

class

id

Note: Core Attributes may not be used 

in base, head, html, meta, param,

script, style or title elements.

style

title

Language Attributes

dir

Note: Language Attributes may not be

used in base, br, frame, frameset, hr,

iframe, param or script elements.

lang

Keyboard Attributes

accesskey tabindex

Form Events

onBlur

onChangeonFocus

onReset

onSelectonSubmit

Window Events

onLoad onUnload

Keyboard Events

onKeydown

onKeypress

onKeyup

Mouse Events

onClick

onDblclick

onMousedownonMousemove

onMouseout

onMouseover

onMouseup

Document Outline

<!DOCTYPE>

<html>

<head><body>

Version of (X)HTML

HTML document

Page informationPage contents

Common Character Entities

&#34;

&#38;

&#60;

&#62;

&#64;

&#128;

&#149;

&#153;

&#163;

&#160;

&#169;

"

<

>

@

£

©

Quotation mark

Ampersand

Less than

Greater than

"At" symbol

Euro

Small bullet

Trademark

Pound

Non-breaking space

Copyright symbol

Links

<a href="">

<a href="mailto:">

<a name="name">

<a href="#name">

Page link

Email link

Anchor

Link to anchor

Empty Elements

<area />

<base />

<br />

<col />

<hr />

<img />

<input />

<link />

<meta />

<param />Page Information

<base />

<meta />

<title>

<link /><style>

<script>

Base URL

Meta data

Title

Relevant resourceStyle resource

Script resource

Tables

<table>

<caption>

<thead>

<tbody>

<tfoot><colgroup>

<col />

<tr>

<th>

<td>

Table

Caption

Table header

Table body

Table footerColumn group

Column

Table row

Header cell

Table cell

Forms

<form>

<fieldset>

<legend>

<label>

<input />

<select><optgroup>

<option>

<textarea>

<button>

Form

Collection of fields

Form legend

Input label

Form input

Drop-down boxGroup of options

Drop-down options

Large text input

Button

Objects

<object>

<param />

Object

Parameter

Document Structure

<h[1-6]>

<div>

<span>

<p>

<br />

<hr />

Heading

Page section

Inline section

Paragraph

Line break

Horizontal rule

Lists

<ol>

<ul>

<li><dl>

<dt>

<dd>

Ordered list

Unordered list

List itemDefinition list

Definition term

Term description

Text Markup

<strong>

<em>

<blockquote><q>

<abbr>

<acronym>

<address>

<pre>

<dfn>

<code>

<cite>

<del>

<ins>

<sub>

<sup>

<bdo>

Strong emphasis

Emphasis

Long quotationShort quotation

Abbreviation

Acronym

Address

Pre-formatted text

Definition

Code

Citation

Deleted text

Inserted text

Subscript

Superscript

Text direction

Images and Image Maps

<img />

<map>

<area />

Image

Image Map

Area of Image Map

Page 2: Web Developer Master Reference

8/14/2019 Web Developer Master Reference

http://slidepdf.com/reader/full/web-developer-master-reference 2/6

Page 3: Web Developer Master Reference

8/14/2019 Web Developer Master Reference

http://slidepdf.com/reader/full/web-developer-master-reference 3/6

Page 4: Web Developer Master Reference

8/14/2019 Web Developer Master Reference

http://slidepdf.com/reader/full/web-developer-master-reference 4/6

Methods

Request

BinaryRead

Response

AddHeaderAppendToLog

BinaryWriteClear

EndFlushRedirect

Write

Application

LockUnlock

Session

Abandon

Server

CreateObjectExecute

GetLastError

HTMLEncodeMapPathTransfer

URLEncode

Properties

Response

BufferCacheControl

CharsetContentType

ExpiresExpiresAbsolute

IsClientConnected

PicsStatus

Request

TotalBytes

Session

CodePageLCID

SessionIDTimeout

Server

ScriptTimeout

ErrorASPCode

ASPDescriptionCategoryColumn

DescriptionFileLine

NumberSource

ASP / VBScript

Functions

String

FormatCurrencyInStrLCaseLeftLenMidReplace

Response.writeRightStringStrReverseTrimUCase

Date

DateDateAddDatePartDateSerialDayFormatDateTimeHourMinute

MonthMonthNameNowSecondWeekdayWeekdayNameYear

Arrays

JoinRedimSplitUbound

Mathematical

AbsAtnCosExpLogRnd (Randomize)RoundSinSqrSgnTan

Collections

Response

Cookies

Request

ClientCertificateCookiesFormQueryStringServerVariables

Application

ContentsStaticObjects

Session

Contents

StaticObjects

 Available free from

www.ILoveJackDaniels.com

REGULAR EXPRESSIONS - MODIFIERS

 /g

 /i

 /s

 /m

Global matching

Case insensitive

Single line mode

Multi line mode

REGULAR EXPRESSIONS - PATTERNS

^$

.

(a|b)

(...)

[abc]

[^abc]

[a-z]

[A-Z]

[0-9]

a?

a*

a+

a{3}

a{3,}

a{3,6}

!(pattern)

\b

\n

\r

\t

\s

\w

Start of stringEnd of string

Any single character

a or b

Group section

Item in range (a or b or c)

Not in range (not a or b or c)

Any lower-case letter

Any upper-case letter

Any numeric digit

Zero or one of a

Zero or more of a

One or more of a

Exactly 3 of a

3 or more of a

Between 3 and 6 of a

"Not" prefix. Apply rule when

URL does not match pattern.

End of word

New line

Carriage return

Escape Character

Tab

White space

Any word (= [A-Za-z0-9_])

DATE FUNCTION ARGUMENTS

yyyy

q

m

y

d

w

ww

h

n

s

Year

Quarter

Month

Day of Year

Day

Weekday

Week of Year

Hour

Minute

Second

NAMED DATE CONSTANTS

0

1

2

3

4

vbGeneralDate

vbLongDate

vbShortDate

vbLongTime

vbShortTime

COMMON LCID CODES

2057

1033

1036

1031

1034

English (UK)

English (US)

French (France)

German (Germany)

Spanish (Spain)

REDIRECT WITH 301 HEADER

Response.Status="301 Moved

Permanently"

Response.AddHeader "Location",

"http://www.website.com"

Response.End

INCLUDING A FILE

<!--#include file="include.inc"-->

FILE MODES

1

2

3

Reading

Writing

Appending

FUNCTION ARGUMENT ORDERS

DateAdd(Interval, Number, Date)DateDiff(Interval, Date1, Date2)

InStr(Start, String, Substring, Compare)

FormatDateTime (Date, DateFormat)

Join(Array, Delimiter)

Left(String, Length)

Replace(Haystack, Needle, Replacement)

Split(Expression, Delimiter)

COMPARISON CONSTANTS

0

1

2

VBBinaryCompare

VBTextCompare

VBDataBaseCompare

STRING CONSTANTS

VbCrVbCrLf 

VbFormFeed

VbLf 

VbNullChar

VbNullString

VbTab

Carriage ReturnVbCr and Line Feed

Form Feed

Line Feed

Null Character

Null String

Tab Character

Page 5: Web Developer Master Reference

8/14/2019 Web Developer Master Reference

http://slidepdf.com/reader/full/web-developer-master-reference 5/6

Available free from www.ILoveJackDaniels.co

Arrays

array_intersectarray_merge

array_poparray_push

array_reversearray_walk

countin_array

Date and Time

datemktime

strtotimetime

Filesystem

clearstatcache

copyfclosefgets

file

filemtimefilesizefile_exists

fopenfreadfwriteis_diris_file

readfile

Headers

headerheaders_sent

setcookie

Mail

mail

Numbers

ceilfloor

number_formatround

Miscellaneous

defineevalexit

Network

fsockopen

PHP Optionsini_get

ini_restoreini_set

phpinfo

Execution

exec

Regex

eregeregiereg_replaceeregi_replacesplitsplitipreg_matchpreg_match_apreg_replacepreg_split

Sessions

session_destrosession_idsession_start

Strings

addslashescryptechoexplode

implodemd5nl2brsprintf strip_tagsstripslashesstristrstrposstrrevstrstrstrtolowerstrtoupperstr_replacesubstrtrim

URLsrawurldecoderawurlencodeurldecodeurlencode

Variables

emptyis_arrayis_intis_nullis_numericis_objectissetserializeunserialize

SuperGlobals

$_ENV$_GET$_POST$_COOKIE$_SESSION$_SERVER$_FILES$_REQUEST$GLOBALS

Y

y

F

Mm

n

D

l

d

 j

h

g

H

G

i

s

w

z

W

t

a

A

B

S

TZ

O

I

L

U

c

r

4 digit year

2 digit year

Long month

Short monthMonth (leading zeros)

Month

Short day name

Long day name

Day (leading zeros)

Day

12 Hour (leading zeros)

12 Hour

24 Hour (leading zeros)

24 Hour

Minutes (leading zeros)

Seconds (leading zeros)

Day of week 1

Day of year

Week of year 2

Days in month

Swatch Internet Time

Ordinal Suffix

Timezone of machineTimezone offset (seconds)

Difference to GMT (hours)

Daylight savings

Leap year

Seconds since Epoch 3

ISO 8601 (PHP 5)

RFC 2822

2005

05

January

Jan01 to 12

1 to 12

Mon

Monday

01 to 31

1 to 31

01 to 12

1 to 12

00 to 23

0 to 23

00 to 59

00 to 59

0 to 6

0 to 365

1 to 53

28 to 31

am or pm

AM or PM

000 to 999

st, nd, td, th

GMT

+0200

1 or 0

1 or 0

date("w"): 0 is Sunday, 6 is Saturday.

Week that overlaps two years belongs to

year that contains most days of thatweek. Hence week number for 1st January

of a given year can return 53rd week if 

week belongs to previous year.

date("W", mktime(0, 0, 0, 12, 28, $year))

always gives correct number of weeks in

$year.

The Epoch was the 1st January 1970.

1.

2.

3.

^

$

.

(a|b)(...)

[abc]

[^abc]

\s

a?

a*

a+

a{3}

a{3,}

a{3,6}

[:punct:]

[:space:]

[:blank:]

Start of string

End of string

Any single character

a or bGroup section

Item in range (a or b or c)

Not in range (not a or b or c)

White space

Zero or one of a

Zero or more of a

One or more of a

Exactly 3 of a

3 or more of a

Between 3 and 6 of a

Escape character

Any punctuation symbol

Any space character

Space or tab

r

r+

w

w+

a

a+

Read

Read and write, prepend

Write, truncate

Read and write, truncate

Write, append

Read and write, append

array_push ( array, element )

in_array ( needle, haystack )

explode ( separator, string )

split ( pattern, string )

preg_split ( pattern, string )

ereg ( pattern, string )

strpos ( haystack, needle )

str_replace ( search, replace, string )

i

s

m

U

e

x

Case-insensitive

Period matches newline

^ and $ match lines

Ungreedy matching

Evaluate replacement

Pattern over several lines

Page 6: Web Developer Master Reference

8/14/2019 Web Developer Master Reference

http://slidepdf.com/reader/full/web-developer-master-reference 6/6