Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: BesY ExperT Klausimai.

Parašė GoN· 2008 Spa. 27 21:10:25
#6

Na dar viena problema :)

<?php

// Date in the past
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
// always modified
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
// HTTP/1.0
header("Pragma: no-cache");

try {
   //error_log("bytes uploaded \r\n", 3, "D:\Program Files\xampp\htdocs\work\upload_demo\php_upload.log");
    $request_method = $_SERVER["REQUEST_METHOD"];
    if ($request_method == "GET"){
      $qvars = $_GET;
    } elseif ($request_method == "POST"){
      $qvars = $_POST;
    }

    $uploadID = trim($qvars["id"]);
   
   $tmp = uploadprogress_get_info($uploadID);
   
   if ($tmp['bytes_total'] < 1) {
      $percent = 0;
   } else {
      $percent = round($tmp['bytes_uploaded'] / $tmp['bytes_total'] * 100, 0);
   }
   print $percent;   
} catch (Exception $e) {
   print "";
}   
?>




Šitame faile kaip aš uploadinu mp3 per psl tai man meta redirecta i pagrindinį kas čia blogai.? :/

Redagavo GoN· 2008 Spa. 27 21:10:55