in reply to Problem with CGI script.

Comment out the flock parts and see what happens - this is what stops it. You simply cannot use flock on your system. Pat