downloadFile( $url, $newfilepath, $timeout = 30)
download a file from $url to $path
Recursively delete a given $dir path
thumbnail(string $html, string $dimensions = '200x200') : string
Process HTML to produce thumbnails from larger images. It scrapes and replaces the image URLs.
String of HTML text containing 'img src="[^"]+"' to be thumbnailed
"HeightxWidth" pixels. Defaults to 200x200.
$html, with img src=".jpg" replaced with links to the thumbnails of the image.
upload(string $destfolder, array<mixed,string> $allowedExts = array("jpg", "jpeg", "gif", "png"), $allowedTypes = array("image/gif", "image/jpeg", "image/pjpeg", "image/png"), integer $limit = 5) : array<mixed,string>
Process submitted $_FILES, allow only images by default
File path to where the file(s) should be uploaded
An array of strings that list that accepted file types
Maximum number of files that can be uploaded at once from $_FILES (default = 5)
An array of the upload results as strings. Array keys are the name="" of the input in the form.