Re: Premature end of script headers: syncscript.pl

2011-04-15 Thread Agnello George
>> >> >> i even tried the following : >> >> >> sub some_sub { >>  $DBH_local = DBI->connect("DBI:mysql::192.168.1.26", "all_user", >> "all_passwd") || return 0  ; >> >>  } ; >> >> } >> >> >> but this too doesn't work . gives me the same error "Internal server error " >> >> Please help me with this

Re: Premature end of script headers: syncscript.pl

2011-04-15 Thread Doug
try add these options when new the DBI object: PrintError => 0, RaiseError => 0, 2011/4/15 Agnello George : > Hi All > > In my code i am trying to connect to a db if it fails it should return > 0 ,  this a web based script and it throws me internal server error > and the apac