My web space is on a Windows server.
EMG
<?php
print( shell_exec( "modharbour.exe test.prg" ) );
?>
function Main()
? "Hello world"
return nil
shell_exec() has been disabled for security reasons
Enrico Maria Giordano wrote:My web space is on a Windows server.
EMG
<?php
$result = shell_exec( "./modharbour test.prg" );
print( substr( $result, strpos( $result, chr( 10 ).chr( 10 ) ) + 1 ) );
?>
<?php
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST');
header("Access-Control-Allow-Headers: X-Requested-With");
file_put_contents( "tmp.prg", $_POST["source"] );
$result = shell_exec( "./modharbour tmp.prg" );
print( substr( $result, strpos( $result, chr( 10 ).chr( 10 ) ) + 1 ) );
?>
Users browsing this forum: No registered users and 8 guests