I'm following a shopping cart tutorial and this snippet is confusing. I have a vague idea, but can some one pls explain what this means?
// setting up the web root and server root for
// this shopping cart application
$thisFile = str_replace('\\', '/', __FILE__);
$docRoot = $_SERVER;
$webRoot = str_replace(array($docRoot, 'library/config.php'), '', $thisFile);
$srvRoot = str_replace('library/config.php', '', $thisFile);
What are web and server roots?