473,390 Members | 1,414 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,390 software developers and data experts.

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

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

May 8 '06 #1
3 4101
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
==================
May 8 '06 #2
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
==================


May 10 '06 #3
si*********@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 写道:

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
==================



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.
js*******@attglobal.net
==================
May 10 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Mothra | last post by:
Hi All, I am the current author of the Astro-Sunrise perl module http://search.cpan.org/~rkhill/Astro-Sunrise-0.91/Sunrise.pm and was wondering if it would be worth while to convert it to...
2
by: Geru | last post by:
Hi there!, I'm looking for a Perl Module that does email decoder. I mean something that I put the email file and the Module returns the Message, Subject, Headers, etc, etc. And it should work...
1
by: vertigo | last post by:
Hello Can i export from perl module value in variable ? For example: $default_path="/usr/bin/"; How should i call this variable from other programs which use this module ? Thanx Michal
0
by: tom | last post by:
What's that perl module that takes english language text as input, or perhaps a couple of batches of english text as input, and reformats the text such that the output is nonsensical, but which...
1
by: smsabu2002 | last post by:
Hi, I am facing the build problem while installing the DBD-MySql perl module (ver 2.9008) using both GCC and CC compilers in HP-UX machine. For the Build using GCC, the compiler error is...
0
by: srinu123 | last post by:
Hi all, I am tring the install perl module(GD-2.35) on my linux machine.But i am getting some error...Please find the error below... D.xs:1450: invalid lvalue in assignment GD.xs:1450:...
0
by: prudhivi | last post by:
hi, i have a database about parameters in a C file. I want to open that C file and access thae Parameter values in a Perl module. can you please suggest a solution for this. Thanks prudhivi
2
by: narenshines | last post by:
Hi i want to establish a remote connection to a server.I have to use the CHILKAT perl module.i dunno how to use it..can anyone help me???
6
by: Keith Lee | last post by:
All: I am attempting to compile the perl module Device::SerialPort and get this error during make -- Manifying blib/man3/Device::SerialPort.3pm Can't open blib/man3/Device::SerialPort.3pm for...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.