PHP: direct call another PHP web applications without going through the usual HTTP call -
I have two PHP web applications. All applications are located on the same computer. Each application will run independently.
Now, can I make a direct API call from one PHP app to another? I do not want to go through either the webservice or the normal HTTP call, which includes HTML responsiveness, I want to call App A from App B using direct method call, as if those two apps are the same application.
How to do this?
include
to include the code in another PHP script Are there. If you have not done this before or have not designed it, then you may need to remove the function from your script (s), put it in a central file and include
In all the scripts that need it (which, of course, they were originally!) Remember that included
included its embedded HTML to include a file in another So you can Usually those PHP files can contain, for which only the functions are, which you are asking for to receive.
Then you call the function, as it was written in the script at first place :)
Comments
Post a Comment