class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
When I look at the code in Firefox here is the message I get when I try to view the pic:
The image “view-source:https://thedomain.com/~lifespa/demo/getfile.php?t=svc&id=6” cannot be displayed, because it contains errors.
If I call the picture directly it shows as it should.
While trying to troubleshoot I turned off the header output of the image mime type and was able to see the code from the picture print. But, as soon as I add header('Content-type: ' . $img->file_src_mime); I get the error message above.
To get the output from the object after local image upload I did this:
The image “view-source:https://thedomain.com/~lifespa/demo/getfile.php?t=svc&id=6” cannot be displayed, because it contains errors.
If I call the picture directly it shows as it should.
While trying to troubleshoot I turned off the header output of the image mime type and was able to see the code from the picture print. But, as soon as I add header('Content-type: ' . $img->file_src_mime); I get the error message above.
To get the output from the object after local image upload I did this:
The output is below: