I have pictures apearing on the site which are used with javascript.
Requesting 20-50 of these takes a long time.
As i see the code, all images are saved somewhere on the hd.
Is there a way of putting these into subfolders as real names, so that i can access them via http directly ?
I could use the direct links, but that is somewhat of a hack, since i suspect the mimetypes to be interpreted by the browser, just reading the data junk, and detecting jpeg data from its header.
A optimal solution would be a folder like
/myimages/publicationame/pid/version
The images just would apear faster and a lot of performace is saved ;)
Sebastian
Posted: 02.11.2005, 22:10
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
The images are served through PHP in order to add permission checking. That is also why the images should be stored outside the webroot and not be accessible like you ask for.
Anyway - you can choose to make them available by storing them in the webroot somewhere. The image name is straight forward from tid, pid and field.