alexa-tracking

[ask] send udp broadcast di codeigniter gimana ya

Main Content

1024
1024
KASKUS
51
244
https://www.kaskus.co.id/thread/552e396931e2e63b188b4568/ask-send-udp-broadcast-di-codeigniter-gimana-ya
[ask] send udp broadcast di codeigniter gimana ya
ada yang tau cara kirim udp di codeigniter gak?
script standar php ga jalan euy.. malah Fatal error: Call to undefined function socket_create() emoticon-Mad (S)
Code:

function send(){

$server_ip = "192.168.0.255";
$server_port = 43278;
$beat_period = 5;
$message = " udp sent";

if ($socket = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP)) {

socket_sendto($socket, $message, strlen($message), 0, $server_ip, $server_port);

}
redirect($this->agent->referrer());
}
cekcoba dulu
Code:
if(function_exists('fsockopen'))
Quote:Original Posted By oknumw3
cekcoba dulu
Code:
if(function_exists('fsockopen'))


udah clear gan,, ternyata localhost ane belom nginstal socket nya aja,, pindah host udah beres ternyata... emoticon-Malu
btw thanks