#!/usr/local/bin/perl use DBI; $first='First'; $last='Last'; print "Inserting Data"; $dbh=DBI->connect('dbi:Oracle:SURVEY','userid','password') || die "Dat +abase ca nnot be connected"; $status=$dbh->do(qq{Insert into t_friend (first_name,last_name) values +('$first', '$last')}); if($status!=0) { print "Inserted.."; } else { print "cannot Insert"; } $dbh->disconnect;
But when called from the browser I get this error:
install_driver(Oracle) failed: Can't load '/usr/local/lib/perl5/site_perl/5.6.0/ aix/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: dlopen: /usr/local/lib/pe rl5/site_perl/5.6.0/aix/auto/DBD/Oracle/Oracle.so: Permission denied at /usr/loc al/lib/perl5/5.6.0/aix/DynaLoader.pm line 200. at (eval 8) line 3 Compilation failed in require at (eval 8) line 3. Perhaps a required shared library or dll isn't installed where expected at /usr/HTTPServer/cgi-bin/test2.cgi line 31Pls help ASAP
In reply to URGENTperl test3.cgi runs fine at command line .. Fails when called from browser by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |