phpm _excel_generation(next_target)
header('Content-Disposition: attachment;
filename="file.xls"');
F:\last cmc batch\abc
https://www.w3schools.com/css/css_rwd_mediaqueries.asp
@media only screen and (orientation: landscape)
https://www.youtube.com/watch?v=JqyCORVFvXo
F:\last cmc batch\pdf_generation
https://code-boxx.com/create-excel-spreadsheet-php/
https://www.youtube.com/watch?v=SCi-BNgRIhY
<?php
$a=opendir("upload");
while($info=readdir($a))
{
if($info!='.' and $info!="..")
{
echo "<img src='upload/$info' height='100' width=100>"."<a href='download1.php?q=$info'>download</a>"."<br/>";
}
}
?>
F:\last cmc batch\19marchcmc\upload-download
<?php
$a=$_REQUEST['q'];
$target='upload/'.$a;
$bn=basename($target);
$ft=filetype($target);
header("Content-Type: application/$ft");
header("Content-Disposition: attachment; filename=$bn");
readfile($target);
?>
D:download
I:same browser
F:folder m file download
Comments
Post a Comment