X andr3a
I file che compongono il tuo: PHP upload progress
(http://www.devpro.it/upload_progress/)
codice:
BytesUploaded.js.javascript
index.php // la form
LoadVars.js.javascript
UploadProgressManager.class.php.php4
whileuploading.php
_temp // dir temporanea x upload
l'unica modifica che ho apportato è al file whileuploading.php
Codice PHP:
<?php
//-------------------------------------------------------------------------------------------------------------------------
// preset
if($_SERVER['SERVER_NAME'] == "127.0.0.1") {
$root = "/test_upload/upload_progress/_temp";
} else {
$root = "upload_progress/_temp";
}
$tmpdir = $_SERVER["DOCUMENT_ROOT"] . $root;
echo $tmpdir;
//-------------------------------------------------------------------------------------------------------------------------
// PUBLIC SETTINGS
//$tmpdir = 'C:/WINDOWS/TEMP'; // your PHP temporary upload folder ( without last slash )
// for this method is better set this folder in a dedicated one
// to be sure that in that folder there isn't any other php temporary file
?>
lo script non mi funziona...
e mi da i seguenti errori..(vedi img)
cichity74