import from website page

 

i have gmt set from my website and all i want to do is setup a page that just transfers variables into mql


here is an example of my idea, the website is php


<?
$month = Date(m);
$day = Date(d);
$year = Date(y);
$hr = Date(h);
$min = Date(i);
$sec = Date(s);
echo "int gmt_month = $month<br>";
echo "int gmt_day = $day<br>";
echo "int gmt_year = $year<br>";
echo "int gmt_hr = $hr<br>";
echo "int gmt_min = $min<br>";
echo "int gmt_set = $sec<br>";
?>


then for the mql part i just use

#import "webpage.php"



is there a way to do this?

 

how do you transfer the output of your phpscript on your webserver to your local computer ?


try this

https://www.mql5.com/en/code/8435

Reason: