Hello,
l have recently got Effortless E-Commerce this book,
however, when l read 'Selling virtual products' chapter, l come up with a question:
the code:
<?php
require('../inc.config.php') --> Constant 'MYSQL' defined in this file
require(MYSQL); --> require constant
...
...
...
?>
with this code, since the constant have been defined in inc.config.php, the MYSQL constant should have a global scope to be used and it could be access anywhere using 'MYSQL'.
Why bother require(MYSQL) again in this script ?
i am not quite understanding the usage of this ==
hope anyone could provide expert view.
Thanks...