05.05.2013 Views

Programming PHP

Programming PHP

Programming PHP

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Example 6-5 shows the file next.php, an HTML page. Following the link from the<br />

front page to this page triggers the loading of the persistent object $l. The _ _wakeup( )<br />

call reopens the logfile so that the object is ready to be used.<br />

Example 6-5. next.php<br />

<br />

Next Page<br />

<br />

<br />

<br />

Figure 6-4 shows the output of next.php.<br />

Figure 6-4. The next page<br />

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

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

Serialization | 157

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

Saved successfully!

Ooh no, something went wrong!