I have to build up a system which listens for requests from a GPS device which is only capable of sending UDP requests. Then I am going to analyze requests hopefully by PHP if it is possible.
I do not know where to start. What do I need? Can I make use of PHP? Would it be reliable to use PHP? Can I just adjust Apache for listening UDP requests?
You need a notion of an overall program design, and, as @karim79 pointed out, an understanding of socket programming APIs for your chosen language.
Do you mean the Apache
httpd? The short answer is “no.”Use something like PEAR’s
System_Daemoninstead.The long answer is “yes, that is possible.” Particularly with modular plugins exposing the
httpd‘s internals, you can do Just About Anything You Want ™ (see, for instance,mod_perl). You could beathttpdinto a sort of application server for a long-running (set of?) PHP process(es) which are not themselves intrinsically HTTP-driven.The better answer of the two is, again, “no.” 🙂