Hello... I am trying to learn how to use InSim with PHP. First question - can I do this with XAMPP on Windows? I have tried using the example code from the wiki but nothing happens. InSim is set to port 30000.
I'm a complete n00b with PHP, so all I want to do right now is to connect to LFS and send a simple packet. I'm not even worried about even sending the ISI packet yet. Am I right in thinking that LFS should complain about what I am sending to it?
If that's right, then should I just be able to use fsockopen and then send a packet with fwrite? Something like this:
Though that's probably completely wrong
I'm a complete n00b with PHP, so all I want to do right now is to connect to LFS and send a simple packet. I'm not even worried about even sending the ISI packet yet. Am I right in thinking that LFS should complain about what I am sending to it?
If that's right, then should I just be able to use fsockopen and then send a packet with fwrite? Something like this:
<?php
$port = "30000";
$tx = fsockopen("udp://127.0.0.1", $port, $errno, $errstr);
$packet = "aaa";
fwrite($tx, $packet);
?>