View Single Post
  #21 (permalink)  
Old 03-29-2008, 03:41 PM
Mistigri's Avatar
Mistigri Mistigri is offline
Member
 
Join Date: Mar 2006
Posts: 34
Mistigri is on a distinguished road
Quote:
Originally Posted by prasxz View Post
is it possible make mt4 dll connected to web service and make php script to shows MT4 open position through a website , so people with no MT4 can see it from website in a realtime ?
Someone posted a while ago a MQL / MySQL example which worked great, the only issue with it is that most hosting companies do not allow remote access to their database servers. However if you did have full access and control to your server you would write an EA which would connect to your database and insert the data for each new order. Then from your website simply connect to the database and read the data ... In my opinion this would be the best approach.

Now a MT4 DLL can connect to a php script but I have never tried to pass the information from the EA to the Website, I was able to successfully do it the other way around though ... You would have to look into windows sockets, and functions such as HTTP_GET / HTTP_POST.

Patrick

Last edited by Mistigri; 04-18-2009 at 06:16 AM.
Reply With Quote