I think the OP is saying that the content of http://some.mysite.com/populatedata.php will depend on the value of the variable $myvar
So the contents of file_get_contents will change.
I do not know why the OP does not just try it and see what they get.