XML files can be read by a human easily with the use of an XSL Stylesheet. So if you have a generic XML file, you can create a generic stylesheet to be viewed in a browser.
Hi Dygear, I posted earlier with regards to PHPInSim, and I noticed you have released an update! I downloaded it and looked at it and it seems very good. I can see the packets being sent out from LFS and written to the console.log file.
What I am wanting to do now, is after a race is finish, I want to grab the results from the grid. I see this being sent to console.log.
I have no idea on how I would go about reading this packet and then be able to manipulate the data so I can enter it into the database.
I understand you are busy, and if you have some time to get me started or provide me the right direction on how to start this I should be able to work from there. I am not sure basically where and how to start from reading your code.
I would greatly appreciate your help - if you can.
That will be cool Dygear. I have your InSim library and I basically don't know what to do with it. I am just learning and I thought I would learn by creating a connection first then maybe send a message to LFS and receive replies. I have your library (the connection) now I want to learn how to send and receive message and its this part where I have no clue where to start.
I added you on MSN if you have time to have a chat Dygear?
$packet = chr (44); // Size of this packet $packet .= chr (1); // ISP_ISI (see the ENUMERATIONS FOR PACKET TYPES list in InSim.txt) $packet .= chr (1); // Reqi - something non-zero, so LFS will return an IS_VER packet $packet .= chr (0); // Must be zero
$packet .= pack ('S', 0); // byte UDP Port (not needed, so 0) $packet .= pack ('S', 40); // 8 (keep text colours) + 32 (receive MCI packets)
$packet .= chr (0); // Sp0 $packet .= '!'; // Special host message prefix character - ! in this example. $packet .= pack ('S', 500); // Time in ms between NLP or MCI packets (0 = none)
In LFS Dedi window - it comes up with: InSim Guest Closed. I run the above script in FireFox as I have a web server installed in our development environment.
Is this "InSim Guest Closed" error good or bad? If I wanted to send a message say "Hi, testing InSim from browser" how would I go about that?
You post was very informative and of course educational and we both appreciate your help.
Last edited by LifeSteala, .
Reason : Removed password...
Hi, thanks for that! Is it OK if I can talk to you abit more about this as I am kind of new with this LFS InSim. I am intermediate with PHP programming and I would like to get my head around these two technologies working together. May I add you to MSN or Yahoo or some other chat application?