Multiple Script callsby cidaris (Friar)
|on Feb 10, 2003 at 23:50 UTC ( #234277=perlquestion: print w/replies, xml )||Need Help??|
cidaris has asked for the wisdom of the Perl Monks concerning the following question:
I have a script which contains several links like so:
where the arguments change for every link.
'full' is the size of the view, '124236' is the ID (and the primary key in the database) and 'pc_img1' is the location.
The script returns an image, which is then put into the page on the fly. There are multiple different images on the page, all presented by the same program.
My concerns is that calling the 'image_serve.cgi' multiple times from the same page with different arguments is causing some kind of problem. Perhaps it simply takes too long for some of the images and the server times out?
When viewing the page with the multiple calls, some images show up, some do not and show broken link placeholders. This changes at random and will differ each time the script is run. Also, occasionally, all images show up. After the page is done loading, one can right-click and "Show Picture" on the images and they will display, so the data does exist.
The code for my 'image_serve.cgi' is below:
Anything glaring I'm missing, or is the problem on the server or client end, and not Perl's problem?
Back to Seekers of Perl Wisdom