mod_harbour for non dedicated servers
- Enrico Maria Giordano
- Posts: 8753
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 3 times
- Contact:
- Antonio Linares
- Site Admin
- Posts: 42508
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 30 times
- Been thanked: 72 times
- Contact:
Re: mod_harbour for non dedicated servers
Here you have it:
https://github.com/FiveTechSoft/mod_harbour/tree/master/cgi/windows
You need the EXE and the DLL and you may use test.prg for a test:
test.php
test.prg
https://github.com/FiveTechSoft/mod_harbour/tree/master/cgi/windows
You need the EXE and the DLL and you may use test.prg for a test:
test.php
Code: Select all | Expand
<?php
print( shell_exec( "modharbour.exe test.prg" ) );
?>
test.prg
Code: Select all | Expand
function Main()
? "Hello world"
return nil
- Enrico Maria Giordano
- Posts: 8753
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 3 times
- Contact:
Re: mod_harbour for non dedicated servers
I created a folder in my webspace and named it mod_harbour. Then I copied the following file in it:
test.prg
libcurl-x64.dll
modharbour.exe
test.php
Then I open the following url in my browser:
https://www.emagsoftware.it/mod_harbour/test.prg
I get: Errore HTTP 404.3 - Not Found
Then I tried with:
https://www.emagsoftware.it/mod_harbour/test.php
And I get: Warning: shell_exec() has been disabled for security reasons in D:\inetpub\webs\emagsoftwareit\mod_harbour\test.php on line 2
What I'm doing wrong?
EMG
test.prg
libcurl-x64.dll
modharbour.exe
test.php
Then I open the following url in my browser:
https://www.emagsoftware.it/mod_harbour/test.prg
I get: Errore HTTP 404.3 - Not Found
Then I tried with:
https://www.emagsoftware.it/mod_harbour/test.php
And I get: Warning: shell_exec() has been disabled for security reasons in D:\inetpub\webs\emagsoftwareit\mod_harbour\test.php on line 2
What I'm doing wrong?
EMG
- Antonio Linares
- Site Admin
- Posts: 42508
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 30 times
- Been thanked: 72 times
- Contact:
Re: mod_harbour for non dedicated servers
Enrico,
They don't allow it:
many thanks for your feedback
They don't allow it:
shell_exec() has been disabled for security reasons
many thanks for your feedback
- Enrico Maria Giordano
- Posts: 8753
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 3 times
- Contact:
Re: mod_harbour for non dedicated servers
Enrico Maria Giordano wrote:My web space is on a Windows server.
EMG
I also have Windows Server running without restrictions
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
- Antonio Linares
- Site Admin
- Posts: 42508
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 30 times
- Been thanked: 72 times
- Contact:
Re: mod_harbour for non dedicated servers
Enhanced version:
live tests:
https://www.fivetechsoft.com/counter/info.php
https://www.fivetechsoft.com/counter/modpro.php
test.php
run.php
live tests:
https://www.fivetechsoft.com/counter/info.php
https://www.fivetechsoft.com/counter/modpro.php
test.php
Code: Select all | Expand
<?php
$result = shell_exec( "./modharbour test.prg" );
print( substr( $result, strpos( $result, chr( 10 ).chr( 10 ) ) + 1 ) );
?>
run.php
Code: Select all | Expand
<?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 ) );
?>
- Antonio Linares
- Site Admin
- Posts: 42508
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 30 times
- Been thanked: 72 times
- Contact:
Re: mod_harbour for non dedicated servers
See this and thanks to Lailton for his great help !!!
http://www.fivetechsoft.com/counter/modpro.php
mod_harbour modpro example working from BlueHost (where no mod_harbour setup is allowed being a non dedicated server) !!! (using the PHP bridge)
http://www.fivetechsoft.com/counter/modpro.php
mod_harbour modpro example working from BlueHost (where no mod_harbour setup is allowed being a non dedicated server) !!! (using the PHP bridge)
- Lailton
- Posts: 169
- Joined: Fri Jul 20, 2012 1:49 am
- Location: Brazil
- Has thanked: 2 times
- Been thanked: 6 times
- Contact:
Re: mod_harbour for non dedicated servers
You're welcome.
All looks nice
good job.
All looks nice
![Smile :)](./images/smilies/icon_smile.gif)
Regards,
Lailton Fernando Mariano
Lailton Fernando Mariano