Re: mod_harbour for non dedicated servers
Posted: Wed Jan 12, 2022 1:08 pm
My web space is on a Windows server.
EMG
EMG
www.FiveTechSoft.com
https://forums.fivetechsupport.com/
https://forums.fivetechsupport.com/viewtopic.php?f=45&t=41211
<?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 ) );
?>