source: branches/feature-module-update/html/test/naka/recv.php @ 15080

Revision 15080, 838 bytes checked in by nanasess, 17 years ago (diff)

svn properties 設定

  • svn:mime-type - application/x-httpd-php; charset=UTF-8
  • svn:keywords - Id
  • Property svn:keywords set to Id
  • Property svn:mime-type set to application/x-httpd-php; charset=UTF-8
Line 
1<?php
2require_once("../../require.php");
3require_once(DATA_PATH . "module/Request.php");
4
5$strmask = "/home/web/test.ec-cube.net/cgi-bin/ShopCGI/common/strmask/FreeBSD_4.4/strmask.exe";
6$cmd = $strmask . " -d " . $_GET['SendData'];
7
8$tmpResult = popen($cmd, "r");
9
10// 結果取得
11while( ! FEOF ( $tmpResult ) ) {
12    $result .= FGETS($tmpResult);
13}
14pclose($tmpResult);             //  パイプを閉じる
15
16$arrRet = lfGetPostArray($result);
17gfDebugLog($arrRet);
18
19//---------------------------------------------------------------------------------------------------------------------------------
20function lfGetPostArray($text) {
21    if($text != "") {
22        $text = ereg_replace("[\n\r]", "", $text);
23        $arrTemp = split("&", $text);
24        foreach($arrTemp as $ret) {
25            list($key, $val) = split("=", $ret);
26            $arrRet[$key] = $val;
27        }
28    }
29    return $arrRet;
30}
31?>
Note: See TracBrowser for help on using the repository browser.