Witajcie mam nietypowy problem i zwracam się z prośbą do bardziej zaawansowanych :)
Miałam problem z wysyłaniem plików na serwer, doszłam że problem był w nazwie tzn:
udało mi sięuruchomić na serwerze log_errors = On i display_errors = On
podaje mi taki błąd:
Fatal error: Uncaught Error: Call to undefined function hrtime() in /home/srv40906/domains/t.aga820.pl/public_html/admin/code.php:641 Stack trace: #0 {main} thrown in /home/srv40906/domains/t.aga820.pl/public_html/admin/code.php on line 641
odnosi się do tej linijki kodu
if ($image1 || $image2 || $image3 || $image4 || $image5 || $image6 ) {
$filename1 = hrtime(true) . '.' . pathinfo($image1, PATHINFO_EXTENSION); //<-- tu jest 641 linijka
$filename2 = hrtime(true) . '.' . pathinfo($image2, PATHINFO_EXTENSION);
$filename3 = hrtime(true) . '.' . pathinfo($image3, PATHINFO_EXTENSION);
$filename4 = hrtime(true) . '.' . pathinfo($image4, PATHINFO_EXTENSION);
$filename5 = hrtime(true) . '.' . pathinfo($image5, PATHINFO_EXTENSION);
$filename6 = hrtime(true) . '.' . pathinfo($image6, PATHINFO_EXTENSION);
i poczytałam i obejście tego to użycie microtime(true) ale on może wykonać dublujące się rekordy bo jw pokazane w kodzie naraz jest zapisane 6 zdjęć i jak to obejść??