TheRockettek, on 17 June 2016 - 07:28 AM, said:
Unless your php site is using POST instead of GET

This shouldn't matter, it's how he is handling the content.
zacekjakub, on 17 June 2016 - 04:35 AM, said:
valithor, on 16 June 2016 - 06:07 PM, said:
In the small test i did it appears it is actually reading six characters. The first being "?" and the sixth being char with code "5" when passed to string.byte
Exatly, thank you. It is printing 6 characters, but as all of you can see, the php code returns just 5 of them.
DannySMc, on 16 June 2016 - 01:40 PM, said:
First this goes into "Ask a Pro",
Second, you should close it BEFORE you return
local function ktime()
local sExample = http.get("http://minecraft.kumpacka.eu/functions/time.php") --Get contents of page
local ret = sExample.readAll()
sExample.close()
return ret
end
But I can't see your PHP code, so no idea what you are doing with the PHP code, so you could be outputting the wrong thing.
PHP code is not the thing, sorry but php is processed by the server, not by the client. My php script returns exactly what you see...
No the problem is, where is the random characters coming? so it might be something like an end of line or hidden character, we are trying to help you.
We ALL know it is not processed by the client, I am asking to see it in-case you are outputting something else as well, that you haven't seen, because I use HTTP and PHP to make my app store work, and I don't get any problems... So like I said, if you can show us both code, we may be able to help more.