thanks for that, i got what i wanted.
2 more questions
(forgive my bad english.. i'm a spanish speaker):
1. And how can i do the same thing when downloading the file by pressing the download buttons (as jpg or as zip)? i mean, download the marked pic instead of the original?
2. If a user see the source code will find the pic easily... what i want to do is to set in the file watermark.php a
"secret" folder...
ill explain: I have my data folder (and of course all the pics) into anoher one called hideimagesfromuser/ (it's just a name), so when the jpg.html file calls the
media_src the folder shown is hideimagesfromuser/data/media/004/001.jpg... well i want to do in fact is to create one more variable to write instead of media_src to not show the full directory, fore example only media/004/001.jpg, and the rest is given by the file watermark.php but not shown... (i hope you did understand.... xoxo my english is so bad
)
Just one more... I wonder if it is possible to restrict the access to the folder hideimagesfromuser/data/media/ and all the subfolders in there to the users who try to enter directly to one file in this folder... i read that i could do it by using a .htaccess file... but i dont even know it... thanks again and i hope for some help... greets!