Webrequest error 4060

To add comments, please log in or register
baguspramundana@gmail.com
49
baguspramundana@gmail.com  

i have problem with my EA, can someone hel me with this problem? i want send variable from mql4 to php, i use webrequest. but when i comple it. the problem like that. how i can fix it?


Marco vd Heijden
Moderator
8178
Marco vd Heijden  

127.0.0.1 is localhost.

Try a real address.

baguspramundana@gmail.com
49
baguspramundana@gmail.com  
Marco vd Heijden:

127.0.0.1 is localhost.

Try a real address.

can i send the variable in mql4 to php in localhost with webrequest??
baguspramundana@gmail.com
49
baguspramundana@gmail.com  

my script:


Marco vd Heijden
Moderator
8178
Marco vd Heijden  

No.

Try a real address and add it to allowed URL's in settings.

You can make a free .TK domain and redirect it to your ip/server, then add the .TK domain name to the allowed URL's list and your good to go.
Fernando Carreiro
4423
Fernando Carreiro  
baguspramundana@gmail.com: i have problem with my EA, can someone hel me with this problem? i want send variable from mql4 to php, i use webrequest. but when i comple it. the problem like that. how i can fix it?

Just as the log message explains, you must add the address to the "Expert Advisors" tab in the Options (Ctrl-O):

And as you can see, you can add local addresses to the list contrary to other comments!

baguspramundana@gmail.com
49
baguspramundana@gmail.com  
Marco vd Heijden:

No.

Try a real address and add it to allowed URL's in settings.

i cant send variable with offline mode to php?

how i can send variable to php in localhost with mql4?

Fernando Carreiro
4423
Fernando Carreiro  
baguspramundana@gmail.com:

i cant send variable with offline mode to php?

how i can send variable to php in localhost with mql4?

You can! See my previous post #5.

baguspramundana@gmail.com
49
baguspramundana@gmail.com  
Fernando Carreiro:

Just as the log message explains, you must add the address to the "Expert Advisors" tab in the Options (Ctrl-O):


wow this work. now my problem in php. i cant save to database.


baguspramundana@gmail.com
49
baguspramundana@gmail.com  
Fernando Carreiro:

You can! See my previous post #5.

thank you so much.

To add comments, please log in or register