Reply to Re: Problems of PHP script running Perl program with Spreadsheet::ParseExcel module

Your name:

Reply:


Posted by Jerry Stuckle on 05/09/06 19:00

sir.linying@gmail.com wrote:
> 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 写道:
>
>
>>sir.linying@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.
>>jstucklex@attglobal.net
>>==================
>
>

Well, the Perl processor in Apache will be governed by the LoadModule
statement(s) in your httpd.conf file, while the command like will be processed
by the one you specify in your input file or on the command line. They may or
may not be the same ones.

But in any case, since the file works without the Perl Spreadsheet::ParseExcel
module in it, PHP seems to be working fine. I'd suggest you follow up in a Perl
newsgroup.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация