Hallo,
ich habe da eine Frage wie kann ich einem bild einen downloadlink einbinden !.
mfg stefan
ich habe da eine Frage wie kann ich einem bild einen downloadlink einbinden !.
mfg stefan
<tr valign="center" height="<? print $total_height;?>"><td align="center" class="photo">
<img width="<? print $width;?>" height="<? print $height;?>" src="<? print $image;?>" border="1" style="border-color: #888888"/>
</td></tr>
EDIT:
cool php guru -> benny-one ich komme!
$bild = 'pfad und dateiname';
$open = fopen($bild, "r");
$pic = fread ($open, filesize ($bild));
fclose ($open);
header("Content-type: image/jpg");
header("Content-type: application/force-download");
header("Content-type: application/octetstream");
header("Content-Disposition: attachment; filename=$bild");
echo $pic;
<?php
$images = '../../bilder/'.$image;
$open = fopen($bild, "r");
$pic = fread ($open, filesize ($images));
fclose ($open);
header("Content-type: image/jpg");
header("Content-type: application/force-download");
header("Content-type: application/octetstream");
header("Content-Disposition: attachment; filename=$bild");
echo $pic;
?>
<?php
$image = $Datei;
$Dateiname = basename($Datei);
$Größe = filesize($Datei);
header("Content-Type: application/force-download");
header("Content-type: image/jpg");
header("Content-Disposition: attachment; filename=$Datei");
header("Content-Length: $Größe");
readfile($Datei);
?>
Warning: filesize() [function.filesize]: Stat failed for (errno=2 - No such file or directory) in /www/htdocs/w006c070/kunden/themes/Flowing_Dark/dl.php on line 4
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w006c070/kunden/themes/Flowing_Dark/dl.php:4) in /www/htdocs/w006c070/kunden/themes/Flowing_Dark/dl.php on line 5
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w006c070/kunden/themes/Flowing_Dark/dl.php:4) in /www/htdocs/w006c070/kunden/themes/Flowing_Dark/dl.php on line 6
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w006c070/kunden/themes/Flowing_Dark/dl.php:4) in /www/htdocs/w006c070/kunden/themes/Flowing_Dark/dl.php on line 7
OffTopic:
kann man google nicht sagen, das sie den mist aus ihrem index entfernen?
Kommentar