Salve a tutti, il mio problema è il seguente:
Non riesco a far l'upload su webser apache installato su sistema operativo mac, il codice php per effettuare l'upload è il seguente, premettendo che tale codice funzione su wampp.
$ins=false;
$target_path = "copertine/";
if (isset($_FILES)) {
$target_path = $target_path.basename( $_FILES['uploadedfileI']['name']);
if(move_uploaded_file($_FILES['uploadedfileI']['tmp_name'], $target_path)) {
// print ("Il file ". basename( $_FILES['uploadedfileI']['name']).
// " è stato registrato.");
$ins=true;
$f=FFilm::getInstance();
$f->addCopertina(basename($_FILES['uploadedfileI']['name']));
}
$target_path = "trailer/";
if (isset($_FILES))
$target_path = $target_path.basename( $_FILES['uploadedfileT']['name']);
if(move_uploaded_file($_FILES['uploadedfileT']['tmp_name'], $target_path)) {
// print ("Il file ". basename( $_FILES['uploadedfileT']['name']).
// " è stato registrato.");
$ins=true;
$f=FFilm::getInstance();
$f->addTrailer(basename($_FILES['uploadedfileT']['name']));
}