1<?php 2 3if (isset($_GET['chdir']) && $_GET['chdir'] != "") { 4 if (!chdir($_GET['chdir'])) { 5 echo "failure to chdir(" . $_GET['chdir'] . ")\n"; 6 exit; 7 } 8} 9 10$opcache = -1; 11 12if (function_exists('opcache_get_status')) { 13 $status = opcache_get_status(); 14 $opcache = $status['opcache_enabled']; 15} 16 17header('X-OPcache: ' . $opcache); 18 19print(getcwd()); 20?> 21