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);
Re: PHP in a Perl Script ... > except that the perl script also writes out some PHP processing.... I assume this is on Apache ... ... (comp.lang.perl.misc)
Re: [PHP] variables from perl cgi into a php ... that wrote the perl script is unavailable to work it in the perl script due ...mysql database.... Sounds like you want your Perl application to call a bit of PHP and pass PHP ... Then the PHP script can grab the URL variables and save them in the ... (php.general)
RE: [PHP] Images being uploaded in ASCII format ... I'll look forward to the perl script to see if it sheds any more light ...Images being uploaded in ASCII format ... Unfortunately PHP does not allow access to raw POST ... Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. ... (php.general)
Re: Manually Calling PHPs request parser for multipart/form-data? ... question isn't really how do I get all the data that PHP received.... This PERL script saves the actual RAW form data coming in to a file. ... through standard input, without the parser that sets up $_FILES and so gets ... (comp.lang.php)
Re: PHP front end triggering async perl scripts ...Gary Stainburn schreef:... I've got a need to fire off a background perl script from PHP in apache. ... The idea is that I write the code in perl and then after PHP has completed the file upload, call the perl in the background passing the filename. ... (Fedora)