Trouble running Perl:DBI from PHP Script
- From: rlomasky@xxxxxxxxx
- Date: 13 Jul 2005 17:53:59 -0700
I apologize in advance if this post is not clear.
I have a PHP program that executes a Perl script. In the Perl script
is a call to the MySQL database. Everything is running on a Mac OS X
Apache server.
When I run the Perl script from the command line, all is well.
When I run the Perl script from the PHP script, it just stops when it
reaches the database call.
What am I doing wrong?
The Perl code is:
my $numLinesQ = $dbh->prepare(qq{
select * from myTable
});
$numLinesQ->execute();
my $numLines = $numLinesQ->fetchrow_array();
$numLinesQ->finish();
The PHP code is:
$executeString = "perl /Library/WebServer/nose/runWeka.pl $wekaTask
$selectedVaporGroupParam";
system($executeString);
Many, many thanks,
Rachel
.
- Prev by Date: RE: DBI-1.48 bind_param_inout produces ORA-01461 colliding with a CLOB
- Next by Date: DBD Oracle download
- Previous by thread: ORA -03113 Error with perl 5.8.4 whne using certain NLS charsets
- Next by thread: DBD Oracle download
- Index(es):
Relevant Pages
|