BEcause you then call the page through the web, which means that the PHP is already processed.
You should use the path on the server instead:
include("/users/www/folder/subfolder/config.php");
(Obviously you need to set the right path for your server)