<?php // 接続先のURLを記述 $TargetURL = 'http://www.example.com/json.php'; $params = ''; foreach($_GET as $key=>$val){ $params .= $key."=".urlencode($val).'&'; } echo @file_get_contents($TargetURL.'?'.$params); ?>