You can use the FTP commands for Highscore, but they aren't really secure. (it exposes username and password, if someone uses a packet sniffer)
There are a few mysql plugins... you can try searching the forum.
I'll do a quick check to see if I turn up anything.
Mysql
Here is a link to
Cattlerustler's Mysql plugin
Use the download button in Cr's post, as his site in his sig is down.
PHP
And finally I found a
thread on using urlmon to pass data to a PHP script.
And here is a simple usage case of utilizing urlmon.
This simple function will enable you to download any file from any
url, without ftp.
'from$' is the full url, and 'to$' is the full download path
(including the filename and extension) you want to save it as on
your harddrive. The function returns a value of 0 if it succeeded,
1 if it failed.
You could also precompile it as a separate executable, running in
hidden mode (set from the project settings in the ide), and
execute it from your main application so that it runs in the
background without affecting your main app.
It will probably trigger the user's firewall, asking for
permission before it downloads anything - so any kiddies out there
looking for ways to download code secretly onto a users machine -
this isn't for you!
Language:
Dark Basic Pro
Code:
function download(from$,to$)
if file exist(to$) then delete file to$
load dll "urlmon",1
failed=CALL DLL(1,"URLDownloadToFileA",0,from$,to$,0,0)
delete dll 1
endfunction failed
===============================================
[edit]
Moved mistakes (thanks benjamin for correcting them) I made in the above to down here.
Quote: "zenassem: (as is with the urlmon below)."
- referring to insecure username/password
Quote: "zenassem: From what I can gather it would have the same security issues as FTP in exposing the username and password (even if it's encrypted in the source code), if one used a packet
sniffer."
"When I look at that square... I wish FPSC noobs would stay on their side of the forums and stop polluting these boards." - Benjamin