A Perl script runs perfect on Apache 2.0.50, PHP 4.3.8 on Windows XP with this code
<?php
if ($GET) {
$pl = "";
foreach($GET as $key => $val){
if (! $pl=="" ) $pl = $pl . "&";
$pl .= "$key=$val";
}
virtual ("somescript.pl?$pl");
} else
virtual ("somescript.pl");
?>
(Page and somescript.pl are in the same directory)
However, on Unix, Apache 1.3.29, PHP 4.3.10 I get an error
Warning: virtual(): Unable to include
'/usr/www/users/path_to_somescript.pl' - request execution failed in line
nr...
pointing to this line in the script above :
virtual ("somescript.pl");
Inclusion of a plain text file works fine, so there seems to be no trouble
with the include in itself.
somescript.pl runs fine in Perl mode, so no problem there.
I tried to use
virtual ("'/usr/www/users/path_to_somescript.pl?$pl");
} else
virtual ("'/usr/www/users/path_to_somescript.pl");
as well, to no avail.
Any help most welcome, thanks for your attention.