バージョン選択

フォーラム

メニュー

オンライン状況

196 人のユーザが現在オンラインです。 (180 人のユーザが フォーラム を参照しています。)
登録ユーザ: 0
ゲスト: 196
もっと...

サイト内検索

質問 > その他 > Google Analytics Mobileが動作しない

その他

新規スレッドを追加する

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
tao_s
投稿日時: 2011/8/26 4:28
対応状況: −−−
仙人
登録日: 2008/8/20
居住地: 東京
投稿: 799
Re: Google Analytics Mobileが動作しない
file_get_contents()ではなく、fsockopen()を使えばいけそうな気がします。
ただ、file_get_contents()よりちょっと面倒なので、自前で以下の様なfile_get_contetnsの代わりをする様な関数を作っておくと良いと思います。

function my_file_get_contents($target,$arrSendData,$method = "GET"){
            $fp = fsockopen("ssl://".$target["host"], 443, $errno, $errstr, 60);
            if (!$fp) {
                $this->arrErr +=array("message"=> "エラーが発生しました:".$errstr);
                return false;
            } else {
                $out =   $method." ".$target["path"]." HTTP/1.1\r\n"
                        ."Host: ".$target["host"]."\r\n"
                        ."Path: ".$target["path"]."\r\n"
                        ."Content-type: application/x-www-form-urlencoded\r\n"
                        ."Content-length: " . strlen(http_build_query($arrSendData)) . "\r\n"                                    
                        ."\r\n".http_build_query($arrSendData)."\r\n\r\n"
                        ."Connection: Close\r\n\r\n";
                fwrite($fp, $out);
                while (!feof($fp)) {
                    $res .= fgets($fp, 4096);
                }
                fclose($fp);
                $res = explode("\r\n\r\n",$res);
                unset($res[0]);
                return implode("\r\n\r\n",$res);
            }

}


----------------
EC-CUBEカスタマイズ相談してください。
緊急のEC-CUBEの障害対応
EC-CUBEカスタマイズブログ

フラット表示 前のトピック | 次のトピック


題名 投稿者 日時
   Google Analytics Mobileが動作しない kakiha 2011/8/19 12:33
     Re: Google Analytics Mobileが動作しない MPV 2011/8/24 22:46
     » Re: Google Analytics Mobileが動作しない tao_s 2011/8/26 4:28
         Re: Google Analytics Mobileが動作しない MPV 2011/8/26 11:56
           Re: Google Analytics Mobileが動作しない kakiha 2011/9/7 18:47
             Re: Google Analytics Mobileが動作しない MPV 2011/9/8 21:58
               Re: Google Analytics Mobileが動作しない kakiha 2011/9/9 10:19

 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は90,134名です
総投稿数は110,324件です

投稿数ランキング

1
seasoft
7369
2
468
3217
3
AMUAMU
2712
4
nanasess
2314
5
umebius
2085
6
yuh
1819
7
h_tanaka
1682
8
red
1571
9
mcontact
1351
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
799
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.