class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in D:\UniServerZ_12\www\vidu\crop\class.upload.php on line 2993 Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in D:\UniServerZ_12\www\vidu\crop\class.upload.php on line 3011
include 'class.upload.php'; $handle = new upload('images/Capture.jpg'); $handle->image_resize = true; $handle->image_ratio_y = true; $handle->image_x = 600; $handle->jpeg_quality = 90; $handle->Process('./images/test/'); if ($handle->processed) { echo 'ok'; // $handle->Clean(); } else { echo 'error : ' . $handle->error; }I got this error:
Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in D:\UniServerZ_12\www\vidu\crop\class.upload.php on line 2993 Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in D:\UniServerZ_12\www\vidu\crop\class.upload.php on line 3011
How to fix it