Thursday, 27 September 2018

PHP : Enable and disable Permission to access external .php file

Add this to the page that you want to only be included
<?php
if(!defined('MyConst')) {
   die('Direct access not permitted');
}
?>
then on the pages that include it add
<?php
define('MyConst', TRUE);
?>

debug VISUAL STUDIO CODE Error Fetch Extensions

 Press Windows + S , search for "Environment Variables" , and select: 👉 "Edit the system environment variables" Click...