Jump to content
php.lv forumi

Kā izdabāt IE6 jeb kādi header jānosūta

Recommended Posts

diena laba!


Īsti nesaprotu kādus header man jānosūta, lai situācijā, kad bildi norādu šādi:


<img alt="test.jpg" src="'.$_SERVER["REQUEST_URI"].'&src=1">


un attiecīgi


if (isset($_GET['src']))
$class= new bilde();

$bilde = $class->get_bilde($params);

header("Content-type: image/jpg");
header("Content-Disposition: inline; filename=".$bilde['name']);
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".$bilde['size']);

print $bilde['data'];


lietotājs uz bildes nospiežot SaveAs - dabūtu korektu bildes tipu un nosaukumu, nevis tukšumu un bitmap.

Bilde caur <img> ielasās, bet pieprasot "'.$_SERVER["REQUEST_URI"].'&src=1" pa taisno izmet kļūdu post-341-126528327407_thumb.jpg

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...