505 HTTP Version Not Supported

intimoviro

Utente Attivo
18 Ago 2009
272
0
0
Salve ragazzi, questa è la prima volta che ricevo quest'errore.

In pratica un software m'invia un form multipart/form-data, nella pagina upload.php ho inserito questo codice:

PHP:
         $directory = '/web/htdocs/www.intimoviro.com/home/zencart/images/';
         // verifica l'esistenza del file

	$file_temporaneo= $_FILES['file']['tmp_name'];
	$nome_file = $_FILES['file']['fileName'];
		//esegue l'upload e controlla che vada a buon fine
	if (move_uploaded_file($file_temporaneo, $directory  . $nome_file)){
		echo "";
	} else {
		echo "Si è verificato un errore durante l'upload";
	}

Appena avvio il software incomincia a passarmi le immagini, però ad un certo punto mi da quest'errore:
505 HTTP Version Not Supported

Cosa significa? Come risolverlo?

Grazie

In realtà questo è tutto l'errore che mi restituisce:

Codice:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>505 HTTP Version Not Supported</title>
</head><body>
<h1>HTTP Version Not Supported</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 [email protected] and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>
 
Ultima modifica:

Eliox

Utente Attivo
25 Feb 2005
4.390
3
0
lo status 505 significa che il server non supporta la versione del protocollo HTTP utilizzato per fare la richiesta
 

intimoviro

Utente Attivo
18 Ago 2009
272
0
0
Scusa, risolto, in pratica inviavo due volte consecutive il form.

Però ora mi da quest'errore:

<b>Warning</b>: move_uploaded_file() [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: Unable to move '/tmp/phpfmog4O' to '/..mio sito/images/' in <b>/..miosito/admin/uploadImages.php</b> on line <b>12</b><br />

In questo script:

PHP:
         $directory = '/web/htdocs/www.intimoviro.com/home/zencart/images/';
         // verifica l'esistenza del file

    $file_temporaneo= $_FILES['file']['tmp_name'];
    $nome_file = $_FILES['file']['fileName'];
        //esegue l'upload e controlla che vada a buon fine
    if (move_uploaded_file($file_temporaneo, $directory  . $nome_file)){
        echo "";
    } else {
        echo "Si è verificato un errore durante l'upload";
    }

Grazie
 

Eliox

Utente Attivo
25 Feb 2005
4.390
3
0
perché:
PHP:
if (move_uploaded_file($file_temporaneo, $directory  . $nome_file)){
        echo "";
    } else {
        echo "Si è verificato un errore durante l'upload";
    }
?
sarebbe più semplice:
PHP:
if (!move_uploaded_file($file_temporaneo, $directory  . $nome_file))
        {
        echo "Si è verificato un errore durante l'upload";
    }
 
Discussioni simili
Autore Titolo Forum Risposte Data
F firefox problema http Linux e Software 0
A errore http://datatables.net/tn/7 PHP 4
M HTTP Status 500 - Internal Server Error. Java 0
L Richieste HTTP get post PHP 1
M [PHP] Modi per fare redirect 301 da http a https PHP 12
B [Java] Paginazione in risposta HTTP Java 0
P Migrazione sito da http a https per rispettare linee guida google SEO e Posizionamento 12
giorgiolovecchio [WordPress] Risorsa http invalida sicurezza sito WordPress 2
Z HTTP ERROR 500 - La pagina non funziona - Joomla! Joomla 0
E [IIS] Reindirizzare richieste esterna http su https Web Server 0
MarcoGrazia Ricerca dell'esistenza del protocollo ( http | https ) in un url Javascript 2
W scambio banner sito per adulti http://massaggicinesi.tk/ Offerte e Richieste di scambio links 0
C Meta tag http-equiv="X-UA-Compatible" errore validatore w3c HTML e CSS 3
A conflitto http/https con google sites Javascript 1
Eruyomon http://studiosergipartners.it/ Presenta il tuo Sito 0
novello88 HTTP Basic Auth su Altervista PHP 0
E HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this director Hosting 10
D Centralizzare Http da più server via ssh Linux e Software 1
Z Esercizio HTTP su SSL Apache 1
M Come verificare accesso ad area http auth basic? PHP 7
V HTTP Long polling Ajax 7
E http request - POST o PUT? PHP 1
M Verifica HTTP o HTTPS PHP 1
C [RISOLTO]Numeri random al termine di un link http Javascript 27
A HTTP Error 403.14 - Forbidden Hosting 4
B Scaricare file xml dopo autenticazione http PHP 1
D richieste http PHP 1
A Alternativa al <meta http-equiv="refresh" content="5;url=code.php" > HTML e CSS 5
L Tabella con rappresentazione corretta di tutti i campi e dei link HTTP . Ciclo for? PHP 5
M Volevo creare un servizio come http://www.destructingmessage.com/ PHP 2
D http://www.dedalo.byethost6.com/ Dedalo intelligenza condivisa Presenta il tuo Sito 0
M http://cryptoncomputer.altervista.org/webphp.php Presenta il tuo Sito 2
M Instantempo! http://instantempo.mattyfog.com Presenta il tuo Sito 0
C Professionista I.T. - Informatico free lance - http://www.malorgio.it Presenta il tuo Sito 0
D Problema DOPPIA richiesta HTTP Ajax 0
T IIS attivo ma errore su http://localhost Classic ASP 1
catellostefano [URGENTISSIMO] si è verificato un errore in http server Apache 2
JellyBelly GET tramite file_get_contents a un url esterno http PHP 2
M Ajax http request refresh problem Ajax 0
N URGENTE "script src=http://www.bnradd.mobi/ngg.js" Database 0
S http://www.eventi-nightanday.com/ Presenta il tuo Sito 0
daviduccio IIS6 e PHP - Intestazioni HTTP - Web Server 5
G http://www.calcioealtro.netsons.org Presenta il tuo Sito 1
G http://wwe.nude.divas.forumcommunity.net/ Presenta il tuo Sito 0
virus.jack Http://virusjack.altervista.org Presenta il tuo Sito 0
V http://viviana.altervista.org Presenta il tuo Sito 3
M http://www.securitysite.helloweb.eu Presenta il tuo Sito 0
L http://www.securelook-mail.biz/ - Directory Free Presenta il tuo Sito 0
D nokia forum - il forum dedicato ai nokia e non solo: http://nokia.theforumx.net/ Presenta il tuo Sito 1
R HTTP Error 404 - File or directory not found. Classic ASP 1

Discussioni simili