Jump to content

quick question


the-botman

Recommended Posts

Hi Guys ..

can someone please tell me why this is not working

[code<?php	
session_start();

   $name = $_SESSION['name'];
$_SESSION['image'];
$name = strtoupper($name);
  header("Content-Type: image/gif"); 
  header('content-disposition: attachment; filename="'.$_SESSION['image'].'.gif"'); 
$im = imagecreatefromgif($_SESSION['image'] . '.gif');
  if(!$im){ 
  die("IMAGE CREATION FAILED");
}
  $white = ImageColorAllocate($im, 255, 255, 255);
  $start_x = 81; 
  $start_y = 255; 
  $start_xx = 13; 
  $start_yy = 237; 
  Imagettftext($im, 15, 0, $start_x, $start_y, $white, 'arial.ttf', $name);
  Imagettftext($im, 15, 0, $start_xx, $start_yy, $white, 'arial.ttf', FROM);

  imagegif($im);
  ImageDestroy($im); 
} 


?>]

 

Thanks in advance

 

Botman

Link to comment
https://forums.phpfreaks.com/topic/183914-quick-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.