include resource
The statement does not work when config.php is one step out of the root directory on servage.net
include_once '../../config.php';
But works one of these lines:
include_once './../config.php';
include_once $_SERVER['DOCUMENT_ROOT'].'/../config.php';
Output of the second solution is:
/storage/content/95/1009995/test.sibrdzne.ge/public_html/../config.php
by Valeri Tandilashvili
4 years ago
PHP
issues
1
Pro tip: use ```triple backticks around text``` to write in code fences