As a part of a bigger module i need the following script:
Here is what is given ...
we have the following [url removed, login to view] code that is triggered in that way:
img --> .htaccess --> [url removed, login to view]
$referer = "[url removed, login to view]";
$url = "[url removed, login to view]";
$ch = curl_init();
curl_setopt ($ch, CURLOPT_REFERER, $referer);
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
$result = curl_exec ($ch);
now the part that stores a cookie is missing ... but what i need is the following ... with the above code the cookie of the targetpage is stored at the server. But i want it stored not only there but also on the clients webbroswers cookiefolder. Just like if the client would visit the page in a normal way directly with his browser.