I'm not looking at writting to a file, but posting to it as in a form posting to a page.
To explain in a little more detail, I'm not trying to open a normal file but a dynamical generated http/php file. For example I want to open the file
<?php
print $HTTP_POST_VARS["posted"];
?>
I want this to return the posted value, not the txt from the file itself. To do this I need to fopen it from a url so the php parser can do its wonders an return the output 😉
Hopefully this explains it a little better and people can understand what I'm talking about now.