/** * Ajax that will return response from command line * * @param void * @return null */ function test_svn() { $path = array_var($_GET, 'svn_path', null); $check_executable = RepositoryEngine::executableExists($path); echo $check_executable === true ? 'true' : $check_executable; die; }