Jump to content

exec in PHP failing to call Perl


ebohatch

Recommended Posts

I have a php module with the following:

<?php

echo "

<HTML>

<HEAD>

<TITLE>photo Gallery</TITLE>

</HEAD>

<BODY>

<P>photo gallery

";

exec("perl simple.pl");

echo "

</p>

</BODY>

</HTML>

";

?>

 

It never executes the perl program simple.pl

 

 

If I run a command line it runs the program just fine??

 

 

I have a Win 7 system running following:

Apache/2.2.14 (Win32)

DAV/2 mod_ssl/2.2.14

OpenSSL/0.9.8l mod_autoindex_color

PHP/5.3.1 mod_apreq2-20090110/2.7.1

mod_perl/2.0.4

Perl/v5.10.1

 

To the begining of the PATH variable I have added

C:\xampp\perl\bin;C:\Program Files\ImageMagick-6.6.2-Q16;

 

These were installed with Xampp.

 

Any help will be appreciated, I have some older php and perl modules that used to work (2006) with older Apache/PHP/Perl versions. but I am just getting back to them now.

Link to comment
https://forums.phpfreaks.com/topic/206210-exec-in-php-failing-to-call-perl/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.