Properties

$src

$src : 

Type

$is404

$is404 : 

Type

$docRoot

$docRoot : 

Type

$lastURLError

$lastURLError : 

Type

$localImage

$localImage : 

Type

$localImageMTime

$localImageMTime : 

Type

$url

$url : 

Type

$myHost

$myHost : 

Type

$isURL

$isURL : 

Type

$cachefile

$cachefile : 

Type

$errors

$errors : 

Type

$toDeletes

$toDeletes : 

Type

$cacheDirectory

$cacheDirectory : 

Type

$startTime

$startTime : 

Type

$lastBenchTime

$lastBenchTime : 

Type

$cropTop

$cropTop : 

Type

$salt

$salt : 

Type

$fileCacheVersion

$fileCacheVersion : 

Type

$filePrependSecurityBlock

$filePrependSecurityBlock : 

Type

$curlDataWritten

$curlDataWritten : 

Type

$curlFH

$curlFH : 

Type

Methods

start()

start() 

__construct()

__construct() 

__destruct()

__destruct() 

run()

run() 

curlWrite()

curlWrite(  $h,   $d) 

Parameters

$h
$d

handleErrors()

handleErrors() 

tryBrowserCache()

tryBrowserCache() 

tryServerCache()

tryServerCache() 

error()

error(  $err) 

Parameters

$err

haveErrors()

haveErrors() 

serveErrors()

serveErrors() 

serveInternalImage()

serveInternalImage() 

cleanCache()

cleanCache() 

processImageAndWriteToCache()

processImageAndWriteToCache(  $localImage) 

Parameters

$localImage

calcDocRoot()

calcDocRoot() 

getLocalImagePath()

getLocalImagePath(  $src) 

Parameters

$src

realpath()

realpath(  $path) 

Parameters

$path

toDelete()

toDelete(  $name) 

Parameters

$name

serveWebshot()

serveWebshot() 

serveExternalImage()

serveExternalImage() 

serveCacheFile()

serveCacheFile() 

sendImageHeaders()

sendImageHeaders(  $mimeType,   $dataSize) 

Parameters

$mimeType
$dataSize

securityChecks()

securityChecks() 

param()

param(  $property,   $default = '') 

Parameters

$property
$default

openImage()

openImage(  $mimeType,   $src) 

Parameters

$mimeType
$src

getIP()

getIP() 

debug()

debug(  $level,   $msg) 

Parameters

$level
$msg

sanityFail()

sanityFail(  $msg) 

Parameters

$msg

getMimeType()

getMimeType(  $file) 

Parameters

$file

setMemoryLimit()

setMemoryLimit() 

returnBytes()

returnBytes(  $size_str) 

Parameters

$size_str

getURL()

getURL(  $url,   $tempfile) 

Parameters

$url
$tempfile

serveImg()

serveImg(  $file) 

Parameters

$file

set404()

set404() 

is404()

is404()