I'm not sure if this is of any help but here is a simple script to download an image from the web. It doesn't access php etc but just an image in a folder on our website.
You need 1 button, 1 field and 1 canvas on your card.
Put the script below in the button.
Local webaddr,yield,timeout,filename,okay
@ Set params for URLexists function
HTTPSetHeaderName('User-Agent')
HTTPSetHeaderValue('My Web Browser')
Put 'http://www.tigabyte.com/hnfiles/images/desktop2.jpg' into webaddr
Put 1 into yield
Put 30 into timeout
Put 'image.jpg' into filename
Put URLexistsFN(webaddr,yield,timeout,filename) into okay
If okay=1 Then
Put 'okay' into field 1
CanvasLoad(1,filename,1)
Else
Put 'unsuccessful' into field 1
EndIf