"Actually this is the best way of doing this also because you can then do the following:
- lets say you have a folder called www.yoursite.com/images
- put ALL your images there in various folders. eg. test1, physics1, chemistry1 etc
- Create your tests offline in textpad/notepad. A question would look like this:
- which is the correct diagram for water's behaviour with change in temp?<img src="http://www.yoursite.com/images/physics1/q1.jpg"> { ~A ~B ~C ~D =E}
Security: since 'images' is a public folder, the students(who are pretty smart) may right click on images during quiz and locate the url of pictures. so do the following:
1. server: set server settings not to allow raw listing of directory contents(this will prevent people from publicly accessing the directory contents)
2. always show quiz in secure window where right click is disabled
3. enable hot-link protection on your site(so that other sites cannot use your images)
This will provide significant security, though nothing is fool proof."
Now your other teachers also cannot access this images folder because you had created this folder by ftp or c-panel. But if your question is a published one, then a 'smart' teacher can import it into one of his quiz without alteration, or worse, locate the url of images and 'leak' it out. So keeping the category unpublished will give max security as only you will know the exact urls of those images.(if you wanna share them, share them by all means)
Moreover, each teacher can also be given such folders to upload their images to be used in questions.e.g. www.yoursite.com/images/teacher1........now the problem will be uploading them if you do not trust them enough to allow them ftp access. This can be solved in one more way, the way discovery's website does it.
tell them to signup for a free site kind of thing like http://teacher1.freesite.com and they can upload their images there in a folder and provide links to it in their question.
Once again- your images are safe
other teachers' images are safe
cross usage can be prevented
student 'leak' can be prevented
hmmpphhhhh...........