Home >Backend Development >PHP Tutorial >Upload any type of file using PHP_PHP Tutorial

Upload any type of file using PHP_PHP Tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-13 17:24:21771browse

This program allows you to upload any type of file and display or download it directly (upload_and_show.php3):

 
if($submit)

{

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");

header("Cache-Control: no-cache, must-revalidate");

header("content-type:application/octet-stream"); ​​

header("content-disposition:inline;filename=$form_data");

header( "content-description:php3 generated data");

 

  $fd = fopen($form_data,"r"); fd,200)){

echo $string;

}

fclose($fd);

}

else { ?>

 

 

http://www.bkjia.com/PHPjc/532144.html

truehttp: //www.bkjia.com/PHPjc/532144.htmlTechArticleMy program allows you to upload any type of file and display or download it directly (upload_and_show.php3): if($submit) { header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn