ini file, you are free to change this value to whatever you deem
appropriate.
Note that this is not the only way to implement these procedures as they apply to
MySQL. You are free to modify this library as you see fit.
Summary
This chapter covered the gamut of PHP??™s session-handling capabilities. You learned
about many of the configuration directives used to define this behavior, in addition
to the most commonly used functions that are used to incorporate this functionality
into your applications. The chapter concluded with a real-world example of PHP??™s
user-defined session handlers, showing you how to turn a MySQL table into the
session-storage media.
The next chapter addresses another advanced but highly useful topic: templating.
Separating logic from presentation is a topic of constant discussion, as it should be;
intermingling the two practically guarantees you a lifetime of application maintenance
anguish. Yet actually achieving such separation seems to be a rare feat when it comes
to Web applications. It doesn??™t have to be this way!
471
?– ?– ?–
C H A P T E R 1 9
Templating with Smarty
All Web development careers started at the very same place: with the posting of a
simple Web page. And boy was it easy. You just added some text to a file, saved it with
an .html extension, and posted it to a Web server. Soon enough, you were incorporating
animated GIFs, JavaScript, and eventually a powerful scripting language such
as PHP into your pages.
Pages:
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550