UDP messages with the Pink to a Server
Can anybody point me in the right direction/· I want to send a string via udp protocol from my pinkto a server that will have PHP and PERL and MySQL.· i want to be able to reciece the string and parse it into the database.· Any ideas?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It's Only A Stupid Question If You Have Not Googled It First!!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It's Only A Stupid Question If You Have Not Googled It First!!
Comments
A better approach might be to set up an email account just for the PINKs to send mail to. Then write a Perl program that runs as a cron job to check the account's POP server on a regular basis. (Your hosting service is more likely to allow cron jobs than to allow custom daemons. If they don't, switch to FutureQuest.) Then, have the PINK modules send email to that account. When a message arrives, the cron program can read it, parse it, and stuff the data into a file that your CGI or PHP scripts have access to.
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It's Only A Stupid Question If You Have Not Googled It First!!