Building an E-Commerce Site Part 2: Managing Users with Sessions - Assumptions and Requirements
(Page 2 of 10 )
Before reading this guide, you should have read and completed part 1 of this series. Specifically, you should have the mymarket database created and the product catalog administrative scripts up and running.
If you have not already done so, please read Part 1 of this guide at:
Also, if you want to follow this guide and get a working site, you must use PHP4 because of the built-in session management features. In most of the scripts, we use PHP4 specific features that are not available in PHP3.
NOTE: If you want to get these examples to work in PHP3, you will have to rewrite some of the functions used in the example script files. You need to:
- provide your own session library;
- reorganize all the scripts so that the functions are defined before you call them;
- change all occurrences of <?=$var?> to <?echo $var?>.
Next: Primer on Sessions >>
More PHP Articles
More By Ying Zhang