I wouldn't build the query string myself like that, but use http_build_query() in preference:

$url = 'http://77.33.xx.xx/s/addtoqueue.php';
$params = array(
    'action' =&gt; 'store',
    'filename' =&gt; $filename,
    'link' =&gt; $link,
);
$link = $url . '?' . http_build_query($params);


To actually make a call to the URL you can use a number of techniques, but my favourite in this case would be curl. Here is an adapted version of the example from the manual:

&lt;?php
$ch = curl_init($link);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);


Other options include file_get_contents($link); if the fopen wrappers have been enabled.

Additional response for comments

&lt;?php
$ch = curl_init($link);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);


$response now contains the response from the URL. From the curl_exec() manual page:


  Returns TRUE on success or FALSE on failure. However, if the
  CURLOPT_RETURNTRANSFER option is set, it will return the result on
  success, FALSE on failure.


For more information on the curl options you can use checkout the curl_setopt() manual page.

Running a get link serverside, with php
Gmail's filters are either very weak or I don't understand, how to create just a bit more complex ones.

In particular, how can I create a filter, that will match:


messages in SPAM folder (as well as in others or only in SPAM folder),
messages, that contain specified keyword in many fields (i.e. From field and message's body).


I'm able to match messages, that contain more than one keyword in given field (for example, to match many keywords in From field, I use one OR two OR three). But, can I write one filter, that will match these keywords in both From field and message's body? So, it will apply given filter rule, no matter, if keyword was found in this or that field? Or do I have to write separate filters for each field, which I want to search for matching keywords?
