1. help Linux+CGI
- Posted by salix at freemail.hu May 14, 2001
- 370 views
I have a problem. I wrote a CGI that updates the database file (123.dat) and creates staticfiles (123.htm) from the form data sent. It works fine. But I wanted the CGI to delete some of the old static files so I put a system("rm 123.htm",2) kind line into my code. Unfortunatelly it completely screw up my proggy. There's no ex.err but I found following message in the httpd_error_log of the server. Error opening terminal: unknown. [Mon May 14 11:35:46 2001] [error] [client 193.224.82.176] Premature end of script headers: /path/123.ex What can be the problem? What should I do? Should I use system_exec()? IT doesn't really seem to be a better solution? Any help is welcome! Thank you in advance. Regards, Salix P.S. Suggestion for Euphoria v2.3 Let temp[length(temp)] mean temp[-1]. Please! All my proggies are full of this length() usage
2. Re: help Linux+CGI
- Posted by craigwoolmer at hotmail.com May 14, 2001
- 369 views
why dont you debug the code or delete this part that has gone wrong, im only an ametur programmer and only know basic and a little bit of C/C++ >From: salix at freemail.hu >Reply-To: EUforum at topica.com >To: EUforum <EUforum at topica.com> >Subject: help Linux+CGI >Date: Mon, 14 May 2001 13:28:25 +0200 > > > >I have a problem. I wrote a CGI that updates the database file (123.dat) >and creates staticfiles (123.htm) from the form data sent. It works >fine. But I wanted the CGI to delete some of the old static files so I >put a > >system("rm 123.htm",2) > >kind line into my code. Unfortunatelly it completely screw up my proggy. >There's no ex.err but I found following message in the httpd_error_log >of the server. > >Error opening terminal: unknown. >[Mon May 14 11:35:46 2001] [error] [client 193.224.82.176] Premature end >of script headers: /path/123.ex > >What can be the problem? What should I do? Should I use system_exec()? >IT doesn't really seem to be a better solution? Any help is welcome! > >Thank you in advance. > >Regards, > >Salix > >P.S. Suggestion for Euphoria v2.3 Let temp[length(temp)] mean temp[-1]. >Please! All my proggies are full of this length() usage > > > > >