FireFly, thank you for your speedy reply.
My idea of attachment viewing is slightly different from your solution.
I would like to WRITE the $attachmentinfo[filedata] into an image file on the server, then serve the user a page in HTML to show that image (with <img..> tags), this way we can create a new template to have a better attachment viewing experience for user, and better advertising for our forums..
We will be also able to let them know where are they watching the image... (In case someone links attachment in our forum to other places.)
but I don't know why the fwrite() tooks so long to finish, and the newly written file is totally corrupted.. I think fwrite() is binary safe?
my board is 2.2.4 and I am testing with 2.2.4
Jedi
|