I have an animated GIF image in a folder not accessible by the web. I would like to output that image through PHP GD, but when outputted, the GIF is unanimated.
Any help?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You use a ‘routing script’ to access such images (or whatever types of files):
client->routing script->open file and forward content->client
The client requests an url like this:
http://your.domain/some/path/image.php?id=animationUse something like this to output the files content to the client:
Note that for this to work the gif file does not ahve to be accessible directly via the http server. It is the local script that accesses the file based inside the local file system. So the script acts as a router for the clients request.
Inside the script to can do all sorts of fancy things: