I have the following directory structure.
/var/www/base/controller/detail.php /var/www/base/validate/edit.json /var/www/html
Within /
/
try using this
$json = file_get_contents("/path/to/your/file/edit.json", true);
As of PHP 5 the FILE_USE_INCLUDE_PATH constant can be used to trigger include path search. This is not possible if strict typing is enabled since FILE_USE_INCLUDE_PATH is an int. Use TRUE instead.