php won't exec perl module
Posted: 29. June 2010 20:48
I have a php module with the following:
<?php
echo "
<HTML>
<HEAD>
<TITLE>web Gallery</TITLE>
</HEAD>
<BODY>
<P>
web gallery
";
exec("perl simple.pl");
echo "
</p>
</BODY>
</HTML>
";
?>
It never executes the perl program simple.pl
This is it:
#!/usr/bin/perl
use strict;
print "This is version\n";
If I run CMD 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 haave 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.
<?php
echo "
<HTML>
<HEAD>
<TITLE>web Gallery</TITLE>
</HEAD>
<BODY>
<P>
web gallery
";
exec("perl simple.pl");
echo "
</p>
</BODY>
</HTML>
";
?>
It never executes the perl program simple.pl
This is it:
#!/usr/bin/perl
use strict;
print "This is version\n";
If I run CMD 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 haave 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.