Thursday, 24 December 2015

Fatal error: Maximum execution time of 30 seconds exceeded in /home/decport732/public_html/system/library/image.php on line 112

<?php

//comment mime variable 

ini_set('memory_limit', '-1');
ini_set('max_execution_time', 0);
class Image {
    private $file;
    private $image;
    private $info;

    public function __construct($file) {
if (file_exists($file)) {
$this->file = $file;

$info = getimagesize($file);

$this->info = array(
            'width'  => $info[0],
            'height' => $info[1],
            'bits'   => $info['bits'],
            //'mime'   => $info['mime']
        );
       
        $this->image = $this->create($file);
    } else {
      exit('Error: Could not load image ' . $file . '!');
    }
}

private function create($image) {
// $mime = $this->info['mime'];

No comments:

Post a Comment