suman_m
asked on
Download File With Images
Hello Experts!!
I am trying to download an htm file using the following code..
header("Content-type: application/octet-stream") ;
header("Content-Dispositio n: attachment; filename=\"new.htm\"");
$fn=fopen("new.htm" , "r");
fpassthru($fn);
The file is downloaded fine but the problem is that there are some images in that particular htm files which are not getting downloaded.
Please advice...
I am trying to download an htm file using the following code..
header("Content-type: application/octet-stream")
header("Content-Dispositio
$fn=fopen("new.htm" , "r");
fpassthru($fn);
The file is downloaded fine but the problem is that there are some images in that particular htm files which are not getting downloaded.
Please advice...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
as jpoesen said:
search for all images.
create an archive with tar and then zip the html file
and all images.
Then you can download it.