uri is the uniform resource identifier. It looks like it doesn't like the relative path you are using, try an absolute path. Or maybe this means the cgi executor is testing the extension again and denies to execute anything other than the .shtml extension.
BTW:
I didn't understand this
I couldn't test it with a .cgi script execution here, but with a #include file="path" it worked in a php file.
I meant I was trying the server side include (ssi) "#include file" that works the same as #exec of cgi (used as ssi too): both require the .shtml extension.
So I tried:
<?php
system("#include file=\"test.txt\"");
?>
And it worked, on Apache 1.3.24.
BTW2.
Actually I think using "system" or "virtual" IS going PHP - directly.
BTW:
I didn't understand this
I couldn't test it with a .cgi script execution here, but with a #include file="path" it worked in a php file.
I meant I was trying the server side include (ssi) "#include file" that works the same as #exec of cgi (used as ssi too): both require the .shtml extension.
So I tried:
<?php
system("#include file=\"test.txt\"");
?>
And it worked, on Apache 1.3.24.
BTW2.
wow 18 hours from the start of this post. Should have gone php :D
Actually I think using "system" or "virtual" IS going PHP - directly.