How do i put PHP in a image?
Create a new file. Put your PHP code into it. Save it as whatever.jpg or whatever image extension you want.
Now you need to edit your (or create) htaccess file to force whatever.jpg to be read as a PHP application. Try a quick google search on htaccess forcing or something similar.
Slodave: that would not work because it would not execute as PHP.
Assassin8 wrote: Create a new file. Put your PHP code into it. Save it as whatever.jpg or whatever image extension you want.
Now you need to edit your (or create) htaccess file to force whatever.jpg to be read as a PHP application. Try a quick google search on htaccess forcing or something similar.
Slodave: that would not work because it would not execute as PHP.Thank you
What extension should i save the htaccess file?
Michael33 I recomend you to read tutorial about what htacess is: http://httpd.apache.org/docs/howto/htaccess.html
Theorethically you have to force server to read your file (like image file in your case), this can be done with htaccess in which you set which file types was processed by server. It can also be done by processing image file throught include()…