Page 1 of 1

New lottery

Posted: Sat Mar 12, 2022 6:32 pm
by Silvio.Falconi
here in italy in 2019 they invented a new lottery, unfortunately I did not find a historical archive to download but I only found a page in php.
Question: Could you download this page and extract the data I need and put it in an array to manage?
there is an sample How dowload a php page and converte the data into array ?

Re: New lottery

Posted: Sun Mar 13, 2022 12:45 pm
by Marcelo Via Giglio
Curl

Re: New lottery

Posted: Sun Mar 13, 2022 8:31 pm
by Silvio.Falconi
sample pls

Re: New lottery

Posted: Sun Mar 13, 2022 9:11 pm
by Otto
Silvio, can you post the link to the php page.
Best regards,
Otto

Re: New lottery

Posted: Sun Mar 13, 2022 10:53 pm
by nageswaragunupudi
cText := WebPageContents( cURL )

Re: New lottery

Posted: Tue Mar 15, 2022 9:57 am
by Silvio.Falconi
nageswaragunupudi wrote:cText := WebPageContents( cURL )


Nages, I tried but I not see anything
I wish the data are on a <table class='tg' style='width:100%;'>

Function MAIN()
LOCAL cMemo:=""
local cUrl := URL_SIM

cUrl :=ALLTRIM(cUrl)

cMemo:=WebPageContents( cUrl, .t. )

?cMemo

return nil