Would someone be willing to suggest a solution to a coding problem?
 
After the following code (downloads a text file from the host server to
my PC), how can I redirect the script to another one?
 
   <?php
   $user_agent = strtolower($_SERVER["HTTP_USER_AGENT"]);
   header("Content-type: application/force-download" );
   if((is_integer(strpos($user_agent,"msie"))) &&
(is_integer(strpos($user_agent,"win")))) {
      header("Content-Disposition: filename=" . $filename);
   } else {
      header("Content-Disposition: attachment; filename=" . $filename);
   }
   header("Content-Description: File Transfer");
   @readfile($filename);
?>
 
I have tried without success:
      header("Location: Echo_UploadBatch.php?filename=" . $filename);
 
Any help would be appreciated!
 
 
Andy Baldwin
Software Developer
Questa Software Systems, Inc.
mailto://[EMAIL PROTECTED]
 

Reply via email to