Jump to content

Craig Hopson

Members
  • Posts

    212
  • Joined

  • Last visited

Everything posted by Craig Hopson

  1. hey been long time since had a HTML problem heres the code <iframe name="Iframe" src="<?php echo $img; ?>" frameborder="0" style="width:95%; border:0; background-color:#ADADEB; height:100%; overflow:auto;"></iframe> now this works great in FF but it look like this ie what a messany ideas welcome.....
  2. whats wrong with this please what i want is if any one off this COOKIES exsit DONT run some code, if (!isset(($_COOKIE["event"] || $_COOKIE["guest"]) )){//some code}
  3. Powered By LiteSpeed Web Server but thanks ill google it
  4. how would i do that?
  5. ok so i have this script <?phpinclude("header.php");$img = $_GET['img']; $imageinfo=getimagesize($img); switch($imageinfo['mime']) { case "image/jpg": case "image/jpeg": case "image/pjpeg": $src_img=imagecreatefromjpeg("$img"); break; case "image/gif": $src_img = imagecreatefromgif("$img"); break; case "image/png": case "image/x-png": $src_img = imagecreatefrompng("$img"); break; } $src_img = imagerotate($src_img, 90, 0);imagejpeg ($src_img,$img);echo '<meta http-equiv="refresh" content="0; URL=viewer.php">';?> using like this <a href="rotate.php?img=uploads/'.$id.'/'.$file.'">Rotate</a> all works well but when it redirects back to viewer.php the image hasn't changed UNTILL you refresh the page any ideas here is viewer.php echo '<div style="width:710px;">';$handle = opendir(dirname(realpath(__FILE__)).'/uploads/'.$id.'/');echo '<ul class="gallery">'; while($file = readdir($handle)){ if($file !== '.' && $file !== '..' && $file !== 'index.html'){ echo ' <li> <div> <a href="uploads/'.$id.'/'.$file.'"> <img src="uploads/'.$id.'/'.$file.'" border="0" style="padding:10px;" height="100px" width="100px" /> </a> </div> <div> <a href="rotate.php?img=uploads/'.$id.'/'.$file.'">Rotate</a> </div> </li> '; } } echo '</ul></div>';
  6. thanks all sorted for now
  7. ok i have the code (below) how do i change the output to save not display <?php// File and rotation$filename = 'test.jpg';$degrees = 90;// Content typeheader('Content-type: image/jpeg');// Load$source = imagecreatefromjpeg($filename);// Rotate$rotate = imagerotate($source, $degrees, 0);// Outputimagejpeg($rotate);?>
  8. Craig Hopson

    imagerotate

    hi i have googled a bit for this but cant find a example off what im looking for 1..open image2..rotate image by 90deg3.. save image4..in a function that i can call using href if any one nows off such an example PLEASE post
  9. err i think the script i'm using my be what you need it works fine apart from attachments which is why i posted in here http://w3schools.invisionzone.com/index.php?showtopic=42926
×
×
  • Create New...