downloading a php web page to a doc file
Posted: Tue Oct 26, 2010 5:46 am
I have problem that when i click to download the contents of a web page to a .doc file only text is getting stored but not images and graphs.The code for that is below.
Please help to get the images also stored in .doc file
Code: Select all
<?php
$fileName = $_GET['urlid'];
header("Content-Type: application/vnd.ms-word");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("content-disposition: attachment;filename=$filename");
readfile("Report/$filename");
print_r($filename);
?>