473,703 Members | 2,323 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems of PHP script running Perl program with Spreadsheet::Pa rseExcel module

My php script is to call perl scipt which makes use of
Spreadsheet::Pa rseExcel 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 4130
si*********@gma il.com wrote:
My php script is to call perl scipt which makes use of
Spreadsheet::Pa rseExcel 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::Pa rseExcel 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*******@attgl obal.net
=============== ===
May 8 '06 #2
My server does have Spreadsheet::Pa rseExcel module and Perl installed.
Indeed I ran the Perl program that uses Spreadsheet::Pa rseExcel 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::Pa rseExcel;" 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*********@gma il.com wrote:
My php script is to call perl scipt which makes use of
Spreadsheet::Pa rseExcel 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::Pa rseExcel 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*******@attgl obal.net
=============== ===


May 10 '06 #3
si*********@gma il.com wrote:
My server does have Spreadsheet::Pa rseExcel module and Perl installed.
Indeed I ran the Perl program that uses Spreadsheet::Pa rseExcel 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::Pa rseExcel;" 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*********@g mail.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::Pa rseExcel 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*******@att global.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::Pa rseExcel
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*******@attgl obal.net
=============== ===
May 10 '06 #4

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

Similar topics

5
2175
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 python. First off, I have never programmed in python. I would like to use this project to learn python. I was wondering if there was a "How to program python for perl programmers" Kinda like what is different between the two, pitfalls for perl...
2
3211
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 with any email coming from every single email client, I mean for any kind of email. Thanks. Gerardo.
1
2838
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
2682
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 also adheres to the rules of grammar --- I saw an example of it's output once and I've been trying to locate it ever since. I think it uses markov chains to do the dirty work.
1
3633
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 produced due to the unknown GCC compiler option "+DAportable". For the Build using CC, the preprocessor error is produced due to the recursive declration of macro "PerlIO" in perlio.h file.
0
2049
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: invalid lvalue in assignment GD.xs: In function `XS_GD__Image_stringFT': GD.xs:2163: `gdFTStringExtra' undeclared (first use in this function) GD.xs:2163: (Each undeclared identifier is reported only once
0
1180
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
2333
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
5407
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 writing: Invalid argument at /usr/lib/perl5/5.8.8/ExtUtils/Command/MM.pm line 132 make: *** Error 22 $ make all Manifying blib/man3/Device::SerialPort.3pm Can't open blib/man3/Device::SerialPort.3pm for writing: Invalid argument
0
8758
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8669
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9251
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9017
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8962
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7867
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6588
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5922
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4687
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.