masterexploder / PHPThumb

PHP Thumbnail & Image Manipulation Library
http://phpthumb.gxdlabs.com
980 stars 264 forks source link

Image path in Apache mod_alias case. #96

Open coscho opened 11 years ago

coscho commented 11 years ago

Hello

  1. I have Apache mod_alias enable
  2. Alias /IMAGE /var/www/update2/images/
  3. So absolute path IMAGE/company/_thumb4/136037063754.png = /var/www/update2/images/company/_thumb4/136037063754.png
  4. If I type in URL http://localhost/IMAGE/company/_thumb4/136037063754.png i get the right image.
  5. images folder and image CHMOD is set to 0777

I still get error. I consider this as a issue.

public function __construct ($fileName, $isDataStream = false) { $this->imported = array(); $this->importedFunctions = array(); $this->errorMessage = null; $this->hasError = false; $this->fileName = "http://" . $_SERVER['HTTP_HOST'] . '/' . $fileName; $this->remoteImage = false; $this->isDataStream = $isDataStream;
$this->fileExistsAndReadable(); }

This is an working code