Is there any way to send & receive data between Wordpress & linux server ? What i wants to do is

  • Take data from user from wordpress page
  • Send data to linux server for processing
  • Once data is processed on linux server receive it on Wordpress page where user has entered data and show results

I know socket programming but i couldn't find enough resource about socket programming between WP and linux.

is there any way to achive this ?

  • 3
    Sure, write a php extension that communicate via a pipe or socket or whatever. Maybe such one even exists. Is it smart to do such a thing? probably not. downvoting and close voting as I do not see what exactly is wordpress specific in this question and it is too broad. Commented Jun 4, 2017 at 14:47
  • i already tried google but couldn't find any resource to achieve this
    Commented Jun 4, 2017 at 15:19
  • php.net/manual/en/book.sockets.php Commented Jun 4, 2017 at 15:23
  • I knows that but what about authentication(username & password) ?
    Commented Jun 4, 2017 at 15:37
  • 1
    what about it, and how is it specific to wordpress? (and... I said right above I am not sure it is a smart thing to do) Commented Jun 4, 2017 at 15:42

1 Answer 1


Its just PHP dude, if you want to do this, just google it.

But, why do you want to do this? Can you be more specific? Because, PHP can retrieve this data, but depending on what you want to do, you'll have to use some JS to show this data, retrieve with PHP and show with JS.

Like, You want to answer some input with some data? I can imagine like 10000 ways to do this..

  • can you suggest me few resources or examples ?
    Commented Jun 4, 2017 at 15:18
  • Like, what do you want to do with this? Commented Jun 4, 2017 at 20:06
  • apply various algorithm on user data
    Commented Jun 5, 2017 at 10:12
  • I see, just use PHP, it'll work Commented Jun 6, 2017 at 13:49

Not the answer you're looking for? Browse other questions tagged or ask your own question.