There is nothing in the upload mod that should prevent the script from loading in the first place. You have no syntax errors in any of your files that I could find. They all compiled just fine.
I did a little search on "premature end of script headers" and I found the following possible problems:
This error is usually caused by one of three things:
(1) The script file was created by a Windows program like Notepad and didn't get uploaded in Unix/ASCII format. Some FTP programs will translate Windows/DOS text files into Unix/ASCII on the fly with a proper setting. Otherwise you'll need a text editor that can save the files in the proper format on your computer.
(2) The script file's permissions were set improperly. Use the CHGMOD command in your FTP program to set the permissions on the script file to 755, or set it to allow Owner RWX permissions, Group RX permissions, and Other RX permission (where R = Read, W = Write, and X = Execute).
(3) There is a syntax error in the script. Often caused when a user customizes a public script for his site. All it takes is a stray keystroke, or an unescaped "@" to stop execution before it starts.
We know that (3) is not the case, because I've compiled the scripts and they compile without error.
(2) would be very easy to check and fix. Do that. Make sure all of your files have the correct permissions. Probably the most important is that db.cgi is set to 755.
My bet is still with (1), though. Notepad is a terrible text editor. Just because it hasn't caused you problems in the past is no guarantee that it's not the culprit this time. You would be better off with Programmer's File Editor, which is a freeware program and is available at
http://www.winsite.com/bin/Info?500000017700 JPD
----------------------------------------------------
JPDeni's DBMan-ual How to
ask questions the smart way.