´Ù¸¥ ¼¹ö·Î °ªÀ» Àü¼ÛÈÄ °á°ú°ªÀ» ¹Þ´Â ¹æ¹ý |
|
|
![](icon/private_name/1.gif) |
12³â Àü |
$mynum °ªÀ» http://abc.com/abc.php À¸·Î º¸³ÂÀ»¶§ http://abc.com/abc.php ¿¡¼ ȸ鿡 »Ñ·ÁÁÖ´Â °á°ú°ªÀ» ¹Þ´Â ¹æ¹ý
<?
$data = 'mynum='.urlencode('º¸³»´Â°ª');
$fp = fsockopen('abc.com',80);
fputs($fp, 'POST /abc.php HTTP/1.1'."\r\n"
.'Host: abc.com'."\r\n"
.'Content-type: application/x-www-form-urlencoded'."\r\n"
.'Content-length: '.strlen($data)."\r\n"
.'Connection: Close'."\r\n\r\n"
.$data."\r\n\r\n");
ob_start();
fpassthru($fp);
$content = substr($content=ob_get_clean(),strpos($content,"\r\n\r\n")+4);
echo $content;
?>
|
|
̵̧ : 633 |
̵̧
¸ñ·Ï
|
|