PHP Classes

Call a function with a socket connection: How to call a PHP function using a socket connection

Recommend this page to a friend!
  All requests RSS feed  >  Call a function with a socket connection  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

Call a function with a socket connection

Edit

Picture of Sandeep Kumar by Sandeep Kumar - 9 years ago (2016-02-12)

How to call a PHP function using a socket connection

This request is clear and relevant.
This request is not clear or is not relevant.

+3

I want to know if it possible that, one create multiple function in server.php script and a particular function can be called from client side.

Like if I have a login() and userDetails() functions.

How can a user call only Login function?

Ask clarification

1 Recommendation

PHP API Server Builder: Build a REST server API from custom classes

This package can build a REST server API from custom classes.

It can register classes that will handle API calls under given server URI.

The main class can handle the requests to the API server and call the respective handler classes.

Optionally a custom class can validate the key value that clients may be required to pass as authorized clients to access the API.
This recommendation solves the problem.
This recommendation does not solve the problem.

+1

Picture of Manuel Lemos by Manuel Lemos Reputation 26695 - 9 years ago (2016-02-19) Comment

There is for instance this class that can handle requests and maps calls to custom classes with the functions that you want to call from the client side.


Recommend package
: 
: