Hi,
How can I run an external code in php or vbs from fivewin?
Thanks!
Hi,
How can I run an external code in php or vbs from fivewin?
Thanks!
Creo que lo puedes hacer usando webview, pero debes contar con un servidor web así sea de manera local.
#include "c:\harbour\contrib\hbcurl\hbcurl.ch"
function Main()
curl_global_init()
? "Hello world"
? callPHP( "www.fivetechsoft.com/getip.php" )
curl_global_cleanup()
return nil
function callPHP( cUrl )
local hCurl, uValue
if ! empty( hCurl := curl_easy_init() )
curl_easy_setopt( hCurl, HB_CURLOPT_URL, cUrl )
curl_easy_setopt( hCurl, HB_CURLOPT_DL_BUFF_SETUP )
if curl_easy_perform( hCurl ) == 0
uValue = curl_easy_dl_buff_get( hCurl )
endif
endif
return uValueAntonio Linares wrote:Thanks Antonio, I use xharbour, where I can find curl compiled for xharbour?#include "c:\harbour\contrib\hbcurl\hbcurl.ch" function Main() curl_global_init() ? "Hello world" ? callPHP( "www.fivetechsoft.com/getip.php" ) curl_global_cleanup() return nil function callPHP( cUrl ) local hCurl, uValue if ! empty( hCurl := curl_easy_init() ) curl_easy_setopt( hCurl, HB_CURLOPT_URL, cUrl ) curl_easy_setopt( hCurl, HB_CURLOPT_DL_BUFF_SETUP ) if curl_easy_perform( hCurl ) == 0 uValue = curl_easy_dl_buff_get( hCurl ) endif endif return uValue
Enrico may help us on this
Enrico do you know where to get it ? many thanks
SET HB_DIR_CURL=<install dir>
Required to build hbcurl.lib
Download URL: http://curl.haxx.se/Antonio, did you receive hbcurl.lib for xHarbour? I've sent it to you yesterday on 23:28.
Enrico Maria Giordano wrote:You have to build it yourself. From winmake\readme.txt:Enrico,
SET HB_DIR_CURL=<install dir> Required to build hbcurl.lib Download URL: http://curl.haxx.se/
Enrico Maria Giordano wrote:Here it is:Thank You Enrico!
https://wormhole.app/6lE98#DrUiOoCwc3x7kgJ2O-EDDA
Enrico Maria Giordano wrote:Here it is:Enrico, using Antonio's example, I have several errors. Need some other lib?
https://wormhole.app/6lE98#DrUiOoCwc3x7kgJ2O-EDDA
FWH 11.05? Very very old (May 2011). Could it be the reason for the errors? Antonio?
Enrico Maria Giordano wrote:FWH 11.05? Very very old (May 2011). Could it be the reason for the errors? Antonio?Error: Unresolved external 'WSAIoctl' referenced from D:\LANG\FWH1105\XH1.2.1\LIB\HBCURL.LIB|hbcurl
Right. Try libcurl.lib from FWH lib directory.
Enrico Maria Giordano wrote:Right. Try libcurl.lib from FWH lib directory.Good, no error, but in execution gives: Unrecoverable error 9011 - hb_xfree called with null pointer