データ送信(GET・POST)

PHP

$url = 'http://localhost/search.php';
$data = array(
	'q1' => 'text1',
	'q2' => 'text2',
);
$options = array('http' => array(
	'method' => 'POST',
	'content' => http_build_query($data),
));
$contents = file_get_contents($url, false, stream_context_create($options));
 

タグ:

+ タグ編集
  • タグ:

このサイトはreCAPTCHAによって保護されており、Googleの プライバシーポリシー利用規約 が適用されます。

最終更新:2011年02月13日 12:05