Forum Moderators: coopster & phranque

Message Too Old, No Replies

Another Bizarre problem with Perl/CGI

Not executing full script

         

trashmanal

10:28 pm on Dec 25, 2003 (gmt 0)

10+ Year Member



This is my second of two bizarre problems I'm having with Perl/CGI on a server. The first is at

[webmasterworld.com...]

Because of that problem, I created a new script in an alternate location that does not make any shell calls. In lieu of shell calls, I created text files with a listing of the directory that I entered manually. This was not as automated as my original plan, but this way after I had a new picture uploaded, I only had to change the text files to include the new pictures instead of changing my script or rewriting a huge stand-alone HTML page.

The new CGI reads these text files, and displays the picture files listed in them.

This script actually runs and displays some pictures now that it has no shell calls. However, it does not display them ALL. The script now freezes after display approximately 20 pictures. I thought it was cutting out one of my loops after so many iterations. Now, I think it's stopping after outputting so many lines of HTML code from the server. This is because I have two scripts, one of which has more HTML, and the one with less ends up displaying all of the page and pictures.

Here are the locations of the two scripts:

www.mysite.com/management/comment.cgi

www.mysite.com/index.cgi

Notice that the second one always displays the full page. The first one stops after approximately 20 pictures. Notice on the first one, if you click on the "BattleStations" or the "Graduation" links (which run the same script, but opens files in a different directory) that the page does load all the way, as there are far less pictures in these two sections.

What problems on the server could cause this issue? Is it a lack of memory or something? It just stops sending data at some point for no apparent reason.

[edited by: jatar_k at 1:32 am (utc) on Dec. 28, 2003]
[edit reason] no specific urls thanks [/edit]

trashmanal

3:22 am on Dec 26, 2003 (gmt 0)

10+ Year Member



OK, I HAD to get the website up, so I had to make modifications. Neither of the links on my previous message really represent my original message. The "management" one I had to password protect after I got the page up so as to protect my site, and the other one I modified into a multiple parts so that it would only display as much information as the server would allow me, so it doesn't show the problem anymore.

You'll just have to take my word for it that they did what I said and base your judgement off that, I guess.