verot.net class
merhaba dostlar verot.net upload kullandığım zaman sunucum da erorr_log oluşuyor her seferinde istediğim işlem oluyor fakat bu erorr_log neden ediyor çözemedim..
erorr_log
[02-Jun-2021 19:09:36 Europe/Istanbul] PHP Notice: A non well formed numeric value encountered in /home/hakankor/bobinaj.hakankorkmaz.site/tester/upload.php on line 3219
[02-Jun-2021 19:09:36 Europe/Istanbul] PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 8 in /home/hakankor/bobinaj.hakankorkmaz.site/tester/upload.php on line 2899
[02-Jun-2021 19:09:36 Europe/Istanbul] PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 8 in /home/hakankor/bobinaj.hakankorkmaz.site/tester/upload.php on line 2939
[02-Jun-2021 19:09:36 Europe/Istanbul] PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 8 in /home/hakankor/bobinaj.hakankorkmaz.site/tester/upload.php on line 2966
[02-Jun-2021 19:09:36 Europe/Istanbul] PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 8 in /home/hakankor/bobinaj.hakankorkmaz.site/tester/upload.php on line 2993
[02-Jun-2021 19:09:36 Europe/Istanbul] PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 8 in /home/hakankor/bobinaj.hakankorkmaz.site/tester/upload.php on line 3011
Buyur başkan...
$foo = new upload($_FILES['file']);
$uzanti = $foo->file_src_name_ext;
$name = $foo->file_src_name_body;
$orjinal = $foo->file_new_name_body = $name;
if ($foo->uploaded) {
// save uploaded image with no changes
$foo->process('tester/');
if ($foo->processed) {
$gorsel = 'tester/' . $orjinal . '.' . $uzanti; // bunu böyle etmemin sebebi veritabaına kaydını yapmak için..
} else {
echo 'error : ' . $foo->error;
}