05.05.2013 Views

Programming PHP

Programming PHP

Programming PHP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

S<br />

Sablotron C library (XSLT support for<br />

<strong>PHP</strong>), 277<br />

safe_mode directive (php.ini file), 292<br />

SAPI (Server Abstraction API), 318, 343<br />

getting name of, 431<br />

linking <strong>PHP</strong> into server via, 352<br />

sapi_globals_struct, 343<br />

Satellite CORBA Client extension, 467<br />

scalar types, 23<br />

scalar values, 418<br />

scaling images, 227<br />

in PDF files, 247–249<br />

nonproportional scaling, 248<br />

Schemas for XML documents, 263<br />

scientific notation, 25<br />

scope, 31<br />

overriding with pass by reference, 66<br />

variables in functions, 64–66<br />

global, accessing, 65<br />

script tag, enclosing <strong>PHP</strong> code in, 59<br />

scripts (current), name of ($<strong>PHP</strong>_SELF<br />

variable), 160<br />

search and replace operations<br />

POSIX-style regular expressions, 103<br />

with preg_replace(), 112<br />

search engine (mnoGoSearch), 464<br />

searching<br />

array for values, 129<br />

strings<br />

functions for, 93–95<br />

position, returning, 93<br />

rest of string, returning, 94<br />

URLs, decomposing into<br />

components, 95<br />

using masks, 94<br />

Secure Sockets Layer (SSL), 188<br />

security, 285–296<br />

concealing <strong>PHP</strong> libraries, 293<br />

eval() function, risks of, 294<br />

file permissions, 291<br />

session files, 291<br />

file uploads, 289<br />

distrusting browser-supplied<br />

filenames, 289<br />

size of uploaded files, 290<br />

surviving register_globals, 290<br />

filenames and, 287–289<br />

checking for relative paths, 288<br />

restricting filesystem access, 289<br />

files, not using, 292<br />

global variables and form data, 285–287<br />

initializing variables, 286<br />

variables_order directive in<br />

php.ini, 287<br />

safe mode for shared servers, 292<br />

shell commands, 295<br />

summary of good practices, 296<br />

of web applications, 285<br />

seeding<br />

Mersenne Twister generator, 425<br />

random-number generator, 443<br />

sendmail, 356<br />

SEPARATE_ZVAL() macro, 332<br />

sequences, database, 201<br />

serialize() function, 438<br />

serializing objects, 153–157<br />

_ _sleep() and _ _wakeup() methods, 155<br />

logfile (example), 155–157<br />

Server Abstraction API (see SAPI)<br />

$_SERVER array, 160–162<br />

HTTP request headers, entries for, 162<br />

servers<br />

Apache (see Apache web servers)<br />

database, 315<br />

global variables for, controlling, 287<br />

$HTTP_SERVER_VARS array, 160<br />

information about ($_SERVER<br />

array), 160–162<br />

in-process (inproc), 360<br />

load balancing and redirection, 314<br />

out-of-process, 360<br />

with <strong>PHP</strong> linked in, 318<br />

remote, YAZ toolkit implementing Z39.50<br />

protocol, 469<br />

reverse proxy caches, 313<br />

SAPI (Server Abstraction API) global<br />

variables, 343<br />

Server header, 159<br />

shared, safe mode for security, 292<br />

XML-RPC, 281<br />

server-side scripting, 1<br />

session files, file permissions and, 291<br />

session tracking, 178<br />

session_destroy() function, 183<br />

session_is_registered() function, 183<br />

session_register(), 183<br />

sessions, 182–187<br />

ab (Apache benchmarking) utility<br />

and, 310<br />

close handler for, 186<br />

combining cookies with, 187<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2002 O’Reilly & Associates, Inc. All rights reserved.<br />

Index | 499

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!