Home › Forums › Other › php encode images › Re: php encode images
June 3, 2013 at 11:03 am
#137454
__
Participant
You don’t need to encode the image URL; you need to encode the image itself (the file). Read about [`file_get_contents`](http://php.net/file_get_contents).
As a side note, however, this is Not A Great Idea unless the images are *tiny* (icon-sized, and even then it depends). Doing this with normal-sized images would make your page insanely heavy, and -since the images are inline in the markup- would block page rendering until they were done being downloaded.