Created
September 25, 2012 15:51
-
-
Save geovanerocha/3782710 to your computer and use it in GitHub Desktop.
Writing something inside the image's code @ PHP.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$arquivo = file_get_contents('imagem.png'); | |
/* | |
@ função file_put_contents para inserir conteúdo no arquivo, | |
@ re-inseri o conteúdo da variável $arquivo para não perder informação e | |
@ adicionei uma string " TEXTO" ao final do código da imagem | |
*/ | |
file_put_contents('imagem.png', $arquivo . ' TEXTO'); | |
print($arquivo); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment