From: <la...@sp...> - 2002-04-25 08:43:57
|
Hi Harikrishnan, >Check the error_log of apache and you might get some hints >on why apache gives the error. Always check the errorlog. Did so - but no clues this time. >(Guess =231) >CGI and mod_perl environments are not exactly the same. >I have seen problems if my script is =27forking=27 and=20 >invoking another script (even indirectly). STDIN and STDOUT >file descriptors are messed up in mod_perl 1.26. So >open(=22=7C...=22) would also fail under mod_perl.=20 This is mod_perl 1.25. >(Guess =232) >mod_perl doesn=27t add the standard HTTP headers unless you >have SendHeaders option ( I forget the exact name - check >mod_perl documentation). What this means is that you >script would have to print *all* HTTP headers in addition >to printing the Content-Type and so on.. This includes the >HTTP status line.Received: from Skjaerlund-MTA by porter.spinn.dk Whenever apache detects that some response >doesn=27t have adequate headers, it will prints =22internal server >error=22. I=27ll remember that one. Anyway, my problem is solved - due to a weird problem, my =24UserName variable got the wrong value in some situations. Accordingly, I got an anonymous login instead of an authorized - and the query didn=27t return any results. So the function =24result->entry(0)->get_value() didn=27t exist, and the script halted; quite fair. What I don=27t understand now is that I tried the following construct: if (=24result->entry(0)) =7B =40ACL =3D =40=7B=24result->entry(0)->get_value(=27ACL=27, asref=3D>1)=7D= ; =7D That test proves positive even though entry(0) doesn=27t exist - and it tries to execute my code. How come? Thanks for your interest so far. Regards, Lars Lars Skj=E6rlund, Network Consultant, Spinn International ApS Bukkeballevej 30, 2960 Rungsted Kyst, Denmark Tel.: +45 70 25 88 10, Fax: +45 70 25 88 44 Mail: lars=40spinn.dk Web: http://www.spinn.dk -- |