Prev | Current Page 114 | Next

W. Jason Gilmore

"Beginning PHP and MySQL: From Novice to Professional"

If you would like to declare variables $argc and $argv and mimic this
functionality, enable register_argc_argv.
post_max_size = integerM
Scope: PHP_INI_SYSTEM; Default value: 8M
Of the two methods for passing data between requests, POST is better equipped to
transport large amounts, such as what might be sent via a Web form. However, for
both security and performance reasons, you might wish to place an upper ceiling
on exactly how much data can be sent via this method to a PHP script; this can be
accomplished using post_max_size.
CHAPTER 2 ?–  CONFIGURING YOUR EN V IRONMENT 43
WORKING WITH SINGLE AND DOUBLE QUOTES
Quotes, both of the single and double variety, have long played a special role in programming.
Because they are commonly used both as string delimiters and in written language, you need a way
to differentiate between the two in programming, to eliminate confusion. The solution is simple:
escape any quote mark not intended to delimit the string. If you don??™t do this, unexpected errors
could occur. Consider the following:
$sentence = "John said, "I love racing cars!"";
Which quote marks are intended to delimit the string, and which are used to delimit John??™s
utterance? PHP doesn??™t know, unless certain quote marks are escaped, like this:
$sentence = "John said, \"I love racing cars!\"";
Escaping nondelimiting quote marks is known as enabling magic quotes.


Pages:
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126