Search the Community
Showing results for tags 'constant'.
-
Hello, I was wondering if it's good practice and if it's safe to define constants that use magic constants to access various directories in a project, even directories outside the webroot. I've found many documentations that discuss how useful are constants when debugging, but what's the usual usage apart from that? For example, is it good practice to write: <?php define('WEBROOT', __DIR__); define('ROOT', dirname(WEBROOT)); define('CORE', ROOT.'/core/'); define('CONFIG', ROOT.'/config/'); define('ADMIN', ROOT.'/admin/'); include CORE.'includes/header.inc.php';
-
This shouldn't be a huge issue but every time I'm on the w3schools site, the site constantly refreshes the page. I'm not sure what is triggering it but this site is the only site that does this. I'm using Google Chrome Version 52.0.2743.116 m. Any suggestions?
- 5 replies
-
- refresh
- w3schools site
-
(and 1 more)
Tagged with: