yes just tried it again with xampp using http://localhost/score.php?score=1001 and it updated the file score.dtb to 1001 when it was 1000, so score.php works just submitting the parameter score=[number] in agk doesn't work
HERE is the link to the agk http docs
@zeroslave xampp is a webserver that basically turns your computer into a website called localhost, so in effect I'm uploading score.php onto a webserver even though it's stored on my computer.
edit: If I change the code to
function SendWorldHi(score)
if GetInternetState()
con = CreateHTTPConnection()
host = SetHTTPHost(con,"localhost", 0)
SendHTTPRequestASync(con,"score.php","score=1200")
do
if GetHTTPResponseReady(con) then exit
loop
print(GetHTTPResponse(con))
sync()
sleep(5000)
CloseHTTPConnection(con)
DeleteHTTPConnection(con)
endif
endfunction
it prints
<!DOCTYPE html>
<html>
<body>
<br />
<b>Notice</b>: Undefined index: score in <b>C:\xampp\htdocs\score.php</b> on line <b>6</b><br />
</body>
</html>
which is the same error that happens when I access localhost/score.php WITHOUT supplying any parameters
edit2: I checked the access logs for Apache and they said this:
Note that I cleared them, the first 2 entries are from AppGameKit and the 3rd one is when I accessed localhost/score.php?score=1111 from Firefox
::1 - - [11/Feb/2013:11:53:02 +1100] "GET /scores.dtb HTTP/1.1" 200 4 "-" "InternetConnection"
::1 - - [11/Feb/2013:11:53:02 +1100] "POST /score.php HTTP/1.1" 200 159 "-" "InternetConnection"
::1 - - [11/Feb/2013:11:57:14 +1100] "GET /score.php?score=1111 HTTP/1.1" 200 55 "-" "Mozilla/5.0 (Windows NT 6.2; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0 AlexaToolbar/alxf-2.17"
There are 10 types of people, those who understand binary and those who don't
