ErrorException [ Warning ]: readfile(): open_basedir restriction in effect. File(/var/www/turlupain-zoom.com/htdocs/commandes/userfiles/products) is not within the allowed path(s): (/var/www/turlupain.com:/tmp:/var/tmp)

APPPATH/classes/Controller/Webservice.php [ 40 ]

35         $extension = strtolower(pathinfo($file, PATHINFO_EXTENSION));
36         
37         $mime = File::mime_by_ext($extension);
38         header('Content-type:'.$mime);   
39         $file = str_replace('.'.$extension,'-'.$this->request->param('param').'.'.$extension,$file);
40         readfile($file);
41         die();
42         //var_dump($this->request->param('id'));
43     }
44     
45     public function action_date_available()
  1. {PHP internal call} » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/Controller/Webservice.php [ 40 ] » readfile(arguments)

  3. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Webservice->action_imageproduct()

  4. {PHP internal call} » Kohana_Controller->execute()

  5. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

  6. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  7. SYSPATH/classes/Kohana/Request.php [ 986 ] » Kohana_Request_Client->execute(arguments)

  8. DOCROOT/index.php [ 118 ] » Kohana_Request->execute()

Environment