우선적으로 방화벽이 있다면 열어야 겠죠?
$header = "GET 전송될경로파일명 HTTP/1.0\r\n".
"name:jack\r\n".
"sex:male\r\n\r\n";
$fp = fsockopen("ip or address", port, $errno, $errstr);
if (!$fp) {
echo "ERROR: $errno - $errstr<br/>\n";
} else {
fputs($fp,$header);
while(!feof($fp))
{
echo fgets($fp, 4096);
}
fclose($fp);
}
참조
http://www.zend.com/zend/spotlight/mimocsumissions.php
http://phpschool.com/gnuboard4/bbs/board.php?bo_table=tipntech&wr_id=9064
반응형