NeoNox:
# php index.phpX-Powered-By: PHP/5.1.1Content-type: text/html
# perl 12================X-Powered-By: PHP/5.1.1Content-type: text/html
================# cat 12#!/usr/bin/perl
print "================\\n";
$test = `php ./index.php &`;print $test;print "================\\n";
Переделано так:
#!/usr/bin/perl
print "Content-type: text/html";
print "================\\n";
$test = `php ./index.php &`;
print $test;
print "================\\n";
// запускаемый
#!/usr/bin/php
Content-type: text/html
echo "11111";
Apache выдает матюги:
Security Alert! The PHP CGI cannot be accessed directly.
Как бишь опция в перле называется, которая в php --enable-force-cgi-redirect?
Пробовали ``, system, exec, passthru, и конечно pipes, дабы подождать окончания запускаемого скрипта. Не видит!!!!!
то есть в php через пайп передаем данные в perl скрипт, а в перл-скрипте пишем print
;. Ни-че-го!