proszę o pomoc pilnie tego potrzebuje
Wiem że mam zrobić str_replace ale na żadnej zmiennej nie działa.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> <form name="Upload" method="post" action="upload.php" enctype="multipart/form-data" id="Form1"> <input type="file" id="FileUpload1" size="25" name="userfile[]"><br> <input type="image" name="Upload" id="ImageButton1" src="images/buttonupload.jpg"</form> </div> </body> </html> <?php $uploaddir = './public/'; $max_size = 1100024 * 1100024; $blad = "Zjebalo sie cos"; # No edits beyond this line foreach ($_FILES['userfile']['error'] as $i => $error) { if ($error == 0 && $_FILES['userfile']['size'][$i] <= $max_size) { $new_base = $_FILES['userfile']['name'][$i]; $t = 1; $new_base = $file_name.'['.$t.'].'.$file_ext; $t++; } chmod($uploaddir.$new_base, 0644); } } } } } ?></div> </body> </html>