My server does have Spreadsheet::ParseExcel module and Perl installed.
Indeed I ran the Perl program that uses Spreadsheet::ParseExcel module
on command line on server machine, and it ran smoothly. However, when I
called the same Perl program from PHP (using exec()) through web
request, Perl program can't run (but PHP produced no error message to
the client browser). I got rid of "use Spreadsheet::ParseExcel;" in
Perl program, and then call the modified Perl program from PHP through
web request, the Perl program ran smoothly.
It seems that PHP server scripting uses different Perl environment as
the command line even though on the same machine. Any suggestions or
clues?
Thanks,
-Ying
Jerry Stuckle 写道:
si*********@gmail.com wrote: My php script is to call perl scipt which makes use of
Spreadsheet::ParseExcel module to parse Excel file. I am able to launch
php script from command line so that perl script can run and properly
parse Excel file. However, when I put php script on server side and
then launch php through client request, perl program can't run.
Anyone has any suggestion re how to fix this problem? Thanks a lot,
-Ying
Ying,
What kind of error are you getting? "can't run" is pretty broad.
Are you sure your host has the Spreadsheet::ParseExcel module on their system?
I'm assuming they have Perl - but even that might not be a safe assumption!
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================