phpm _excel_generation(next_target)

header('Content-Type: application/xls');

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);

?>


<?php
//echo phpinfo();
/*mpdf library for pdf install composer*/
/*search composer and download */
/*open cmd 
and run command for mpdf download..
composer require mpdf/mpdf*/
/*open particular folder 
in cmd and install the mpdf  in that folder...*/
require_once __DIR__ . '/vendor/autoload.php';
$mpdf = new \Mpdf\Mpdf();
$mpdf->WriteHTML('<h1>Hello world!</h1>');
//u can pass data here...
//$mpdf->Output();
$mpdf->Output('mydoc.pdf','d');


?>




D:download

I:same browser

F:folder m file download


<?php
//echo phpinfo();
/*mpdf library for pdf install composer*/
/*search composer and download */
/*open cmd 
and run command for mpdf download..composer require mpdf/mpdf*/
/*open particular folder 
in cmd and install the mpdf  in that folder...*/
require_once __DIR__ . '/vendor/autoload.php';
$mpdf = new \Mpdf\Mpdf();
$mpdf->WriteHTML('<h1>Hello world!</h1>');
//u can pass data here...
//$mpdf->Output();
$mpdf->Output('mydoc.pdf','d');


?>

Comments

Popular posts from this blog

interview questions js[ Anurag Singh ProCodrr]

reactnative_creation