Hello, i know how to talk from mql4 to php like "WebRequest" and having and php side api that handles requests.
but how can i talk from php side to the mql4 side ? thanks
Is your computer with MT4 directly accessible from the place you are running the php (usually indicated by a unique IP address)?
Hello, well i'm using Virtual Box linux and host pc is windows so they psychically run on the same machine but in fact php runs on linux side and MT4 on windows.
anyway tell me what you had in mind i wanna know all the ways i can do it (i think you wanted to use command line ?)
Hello, well i'm using Virtual Box linux and host pc is windows so they psychically run on the same machine but in fact php runs on linux side and MT4 on windows.
anyway tell me what you had in mind i wanna know all the ways i can do it (i think you wanted to use command line ?)
- php.net
but how can i talk from php side to the mql4 side ? thanks
What is your requirement exactly? As a server-side script, PHP is normally accepting and processing incoming requests from clients, but its usage as a client for sending outgoing requests is somewhat awkward (though feasible of course). Maybe you need to change your architecture or consider long-polling?
I'm not sure what Ovo Cz means by "a listening MT4 script", because real sockets (including listening sockets) are not supported in MT AFAIK. But you can use dlls for that purpose.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello, i know how to talk from mql4 to php like "WebRequest" and having and php side api that handles requests.
but how can i talk from php side to the mql4 side ? thanks