Advertisement
dave086

imagem.php

Mar 6th, 2011
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. <?php
  2.  
  3. //Carregar imagem
  4. $rImg = ImageCreateFromJPEG("http://autoh.it/imageau/banner468.jpg");
  5.  
  6. //Definir cor
  7. $cor = imagecolorallocate($rImg, 250, 250, 250);
  8.  
  9. //Escrever nome
  10. imagestring($rImg,200,350,30,urldecode($_GET['nome']),$cor);
  11.  
  12. //Header e output
  13. header('Content-type: image/jpeg');
  14. imagejpeg($rImg,NULL,100);
  15.  
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement