fork download
  1. <?php
  2.  
  3. require_once "/lib/pdo.php";
  4.  
  5. require 'Slim/Slim.php';
  6.  
  7.  
  8. \Slim\Slim::registerAutoloader();
  9. $app = new \Slim\Slim();
  10.  
  11. $app->container->singleton('fileMapper', function () {
  12. return new DataMapper($DBH);
  13. });
  14.  
  15. $app->get('/:id', function ($id){
  16. $mapper=$app->fileMapper;
  17. return $file=$mapper->showFilebyID($id);
  18. });
  19. $app->run();
Runtime error #stdin #stdout #stderr 0.02s 24448KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Warning:  require_once(/lib/pdo.php): failed to open stream: No such file or directory in /home/rUxIyA/prog.php on line 3
PHP Fatal error:  require_once(): Failed opening required '/lib/pdo.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/rUxIyA/prog.php on line 3