こんにちは私は簡単なゲームを作ろうとしていますが、サーバーが必要なので、フラッシュでソケットの学習を始めましたが、getパラメーターを使用してphpページにセッションを送信すると、ページにgetパラメーターがなく、ちょうど入力しているようになります通常のページのみ(例:index.php?something = something2で、何かなしでindex.phpに接続します)
これが私が意味することです:
http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol
私が送るportocol:
mysocket.writeUTF(" GET /index.php?act=getip HTTP/1.1\r\n Host: 192.168.1.100\r\n\r\n");
私のphpページ:
<?
include 'all.php';//mysql connect, escaping all get/post params
if($_GET["act"] == 'getip'){
die($_SERVER["REMOTE_ADDR"]);//this must be printed on the screen
}
print 'asd';//<-------------------- i get this on connecting
?>