I have a java servlet class that is needed to be coded in PHP.
I need to process the image coming from the REQUEST of an IMG tag.
HTML Code example:
From this URL, a request comes in for the Sample.jpg to be displayed. But before this image be displayed, some process should be done first at the back-end, then the right size of the image should will be displayed.
A php script will not be called from this IMG tag. The trigger would be the REQUEST..
I have done this in java by using a Filter class and filter mapping in the web.xml file.
I not am sure this can be done in PHP. Please give me some suggestions or code snippets or any tutorial.