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.

sessions (continued)<br />

destroy handler for, 187<br />

errors, logging to file, 187<br />

garbage-collection handler for, 187<br />

open handler for, 185<br />

read and write handlers for, 186<br />

registering variables for, 183<br />

session IDs<br />

expiration of cookies, 184<br />

storing in cookies, 182<br />

storing in form fields or URLs, 184<br />

session information storage,<br />

customizing, 185<br />

setting page-color preferences with, 183<br />

using preferences from, 184<br />

session_set_save_handler() function, 185,<br />

187<br />

session_start() function, 183, 187<br />

session_unregister() function, 183<br />

setcookie() function, 175, 179, 439<br />

set_error_handler() function, 305, 438<br />

set_file_buffer() function, 439<br />

setlocale() function, 440<br />

sets, implementing with arrays, 137<br />

set_time_limit() function, 439<br />

settype() function, 440<br />

SGML, embedding <strong>PHP</strong> with SGML tags, 58<br />

shell commands, 430, 451<br />

opening pipe to process executed on, 432<br />

security and, 295<br />

Unix and Windows, 359<br />

shell-based <strong>PHP</strong> programs, 15–16<br />

shell_exec() function, 440<br />

shell-style comments, 19<br />

shmop extension, 467<br />

Shockwave Flash movies<br />

Ming library, 464<br />

SWF extension for creating, 467<br />

short tags, 58<br />

shortcuts in database queries, 199<br />

shuffle() function, 134, 440<br />

shutdown function, registering, 436<br />

shutdown or close function (extensions),<br />

triggering resource cleanup, 29<br />

side effects of a function, 62, 67<br />

sign specifier (printf() format modifier), 77<br />

similar_text() function, 88, 440<br />

sin() function, 62, 441<br />

size<br />

of files, 224<br />

of images, scaling, 227<br />

sizeof() function, 119, 441<br />

500 | Index<br />

_ _sleep() method, 155<br />

sleep() function, 441<br />

slicing arrays, 121<br />

SMTP servers, 356<br />

SNMP extension, 467<br />

SOAP protocol, 280<br />

socket_get_status() function, 441<br />

sockets<br />

extension for, 467<br />

SSL, 188<br />

socket_set_blocking() function, 441<br />

socket_set_timeout() function, 441<br />

software tools for writing <strong>PHP</strong><br />

extensions, 319<br />

sort() function, 130, 442<br />

sorting<br />

arrays, 28, 130–135<br />

with anonymous functions, 71<br />

multiple arrays at once, 133<br />

in natural order, 133, 425<br />

<strong>PHP</strong> functions for, 130<br />

in random order, 134, 440<br />

in reverse order, 134, 419, 438<br />

with user-defined functions, 452<br />

in user-defined order, 131–133<br />

strings, 133, 448<br />

soundex() function, 88, 442<br />

source code (<strong>PHP</strong>), downloading CVS<br />

version, 318<br />

special characters<br />

in regular expressions, 96<br />

security risks in shell commands, 295<br />

spelling<br />

aspell library, 457<br />

pspell library, 466<br />

split() function, 103, 442<br />

spliti() function, 442<br />

splitting<br />

arrays into chunks, 121<br />

regular expression pattern matches, 114<br />

strings into arrays of smaller chunks, 95<br />

strings into smaller chunks, 103<br />

sprintf() function, 442<br />

SQL (Structured Query Language)<br />

escaping string literals in queries, 85<br />

Microsoft SQL Server extension, 464<br />

mSQL extension, 464<br />

Ovrimos SQL extension, 465<br />

placeholders in queries, 198<br />

portability of queries, 190<br />

relational databases and, 190<br />

statements performing queries, 195<br />

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

Copyright © 2002 O’Reilly & Associates, Inc. All rights reserved.

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

Saved successfully!

Ooh no, something went wrong!