Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Well I don't need to retrieve the contents, only submit the GET data. Would that particularly matter, or would it be fine anyway? i.e. file_get_contents("domain.com/file.php?action=this&get=that");
    – Rob
    Commented Apr 18, 2010 at 8:14
  • 1
    it's fine, you can just ignore the return value of file_get_contents.
    – elias
    Commented Apr 18, 2010 at 8:18
  • Thought so. I'll give it a shot and come back
    – Rob
    Commented Apr 18, 2010 at 8:18
  • 2
    @Rob - elias is right, you could just ignore the return value. I updated my answer with a crude fsockopen() method of manually sending HTTP request headers if you were worried about the overhead of making a full HTTP request (which probably isn't much, unless that URL is returning a ton of info).
    – zombat
    Commented Apr 18, 2010 at 8:20