Hi, i have tried... yes, filmaffinity has changed something....
I have tried some scripts and with:
Code:
<?php
$path = '/images/one.jpg';
$opts = array(
'http'=>array(
'method'=>"GET",
'header'=>"Accept-language: en\r\n" .
"Accept:image/png,image/*;q=0.8,*/*;q=0.5 \r\n".
"Host: www.allamoda.eu\r\n" .
"User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20100101 Firefox/12.0\r\n"
)
);
$context = stream_context_create($opts);
$imm = 'http://pics.filmaffinity.com/El_abuelo_que_salto_por_la_ventana_y_se_largo-395077157-large.jpg';
if( $content = file_get_contents($imm,false,$context) ){
file_put_contents($path, $content);
echo "Yes";
}else{
echo "No";
}
?>
I could download $imm via php script.... could you tell me how (and where) to insert that script? the trick is using an user agent to cheat the server.... could you help me? I only need to insert that... the rest of your script its the same