daily pastebin goal
78%
SHARE
TWEET

imagem.php

dave086 Mar 6th, 2011 110 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top