PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
hi,
what i want is creat my own php api
in server A i have many functions and classes that i what acess outside of that server.
like we use the cpanel api for example that we give the user and pass and add domains etc
thanks
Sure. You can make something as simple as a PHP script, or set up a REST API or a SOAP endpoint or two. Depends how you want to do it. What matters "most" is how it looks to the outside - once that's set you can change the internals as much as you'd like.
What kind of "functions and classes" do you want to expose? Will they require authentication?
Go right ahead. Do you have specific questions on where to start? First step is making a PHP script that can, say, output the results you want. Once it does that then you can turn it into an "API".