Milzu Lempis Posted February 4, 2010 Report Share Posted February 4, 2010 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 Quote Link to comment Share on other sites More sharing options...
bobsters Posted February 4, 2010 Report Share Posted February 4, 2010 <img alt="test.jpg" src="<?php echo $_SERVER["REQUEST_URI"];?>&src=1"> Quote Link to comment Share on other sites More sharing options...
Milzu Lempis Posted February 4, 2010 Author Report Share Posted February 4, 2010 <img alt="test.jpg" src="<?php echo $_SERVER["REQUEST_URI"];?>&src=1"> Ar sintaksi problēmas nav - esmu vienkārši te nepareizi ievietojis - tur sākumā bija print '..... Quote Link to comment Share on other sites More sharing options...
bobsters Posted February 4, 2010 Report Share Posted February 4, 2010 ir vaina sintakse jo ka redzi aiz varda from (errora) ir tuks lauks! taka vins nezin no kurienes vinu lejupladet!!! Quote Link to comment Share on other sites More sharing options...
Milzu Lempis Posted February 4, 2010 Author Report Share Posted February 4, 2010 ir vaina sintakse jo ka redzi aiz varda from (errora) ir tuks lauks! taka vins nezin no kurienes vinu lejupladet!!! nea :) - jo izdzēsu tā kā negribēju, lai redzat domain. bet doma laba... Quote Link to comment Share on other sites More sharing options...
bobsters Posted February 4, 2010 Report Share Posted February 4, 2010 nu tad nevis izdzes bet aizkaraso lai var saprast vai izvada kaut ko vai ne! Ka var palidzet ja tu visu neparadi tikai kaut kadu dalu! :( Quote Link to comment Share on other sites More sharing options...
Milzu Lempis Posted February 4, 2010 Author Report Share Posted February 4, 2010 pārmetumi vietā, turpmāk mēģināšu laboties... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.