Replies: 1 comment
-
I think we can do it by including the file abc.php inside callback function to onRequest event ? but i am not sure if that will make code synchronous ? |
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
So far, i am using Phalcon's Routes and Phalcon's Autoloaders to serve HTTP API Request. However, it would be much helpful for many if we know how to serve a request that wants to execute abc.php just as in traditional Apache request.
For example, if the client side code sets $req3->path = "/abc.php"; as also shown in (last) code snippet on official document, here:
[https://www.swoole.co.uk/docs/modules/swoole-coroutine-http2-client]
See: $req3->path = "/index.php";
One raw idea in my mind is to use system call like exec(), but i am not sure if that is the correct / better way to do that.
Beta Was this translation helpful? Give feedback.
All reactions