Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Anyone knows about this error?
  • "ErrorException [ Error ]: Call to undefined function Fuel\Core\finfo_open()" i have my controller:
    public function action_upload()
    { if(Input::method()== 'POST')
    { Upload::get_files();
    Upload::save(); } $this->template->title = "Products";
    $this->template->content = View::factory('products/upload');
    } and my upload view <?php echo Form::open(array('enctype'=>'multipart')); ?>
    <label for="image_url">Image url:</label>
    <?php echo Form::input(array('name'=>'image_url', 'type'=>'file')); ?> <?php echo Form::submit(); ?> <?php echo Form::close(); ?> im just trying to create a simple upload image function.. if you guyz have better way to do this please teach me how..
  • maybe if you are under win, you need to add the following line your php.ini then to activate it: extension=php_fileinfo.dll http://stackoverflow.com/questions/5108758/using-php-fileinfo-dll-and-finfo-open-in-windows-php-5-3-5
  • According to the PHP manual, fileinfo should be included in PHP as of 5.3. On Windows, you do need the dll. On Linux, we've noticed that there are hosters that compile their own PHP binary, and use old scripts for that, so fileinfo isn't included. If that's the case here, complain.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion