17.10.2010, 11:47
If I write more lines with HTTP_POST lines in file are absolutley random.
dest.txt
...then
Every time another sequence.
test.php
pawn Код:
HTTP(playerid, HTTP_POST, "myweb.cz/test.php?filename=dest.txt&input=1. line", "", "");
HTTP(playerid, HTTP_POST, "myweb.cz/test.php?filename=dest.txt&input=2. line", "", "");
HTTP(playerid, HTTP_POST, "myweb.cz/test.php?filename=dest.txt&input=3. line", "", "");
HTTP(playerid, HTTP_POST, "myweb.cz/test.php?filename=dest.txt&input=4. line", "", "");
HTTP(playerid, HTTP_POST, "myweb.cz/test.php?filename=dest.txt&input=5. line", "", "");
dest.txt
Код:
5. 2. 3. 4. 1.
Код:
1. 3. 5. 2. 4.
test.php
Код:
<?php if (isset($_GET["filename"]) && isset($_GET["input"])) { $readfile = fopen("files/".$_GET["filename"], "a"); chmod("files/".$_GET["filename"], 0777); fwrite($readfile, $_GET["input"]."\r\n"); fclose($readfile); } ?>