web - How to pass a webrequest to localhost in PHP? -


i have public facing cgi interface. supports php. (let's say: domain.com/cgi/proxy.php)

then have java process (embedded web server) listens localhost:9090.

is there possibility create php script, routes requests cgi script java process on localhost. proxy in script.

should this: web -> public facing proxy.php -> local java process listening on 9090 -> return

you should use sockets in case. @ php docs:

http://www.php.net/manual/it/book.sockets.php

and here example:

http://www.php.net/manual/it/sockets.examples.php

you should connect localhost on port 9090 (look @ example) , send data want received java listener.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -