Visa ett inlägg
Oläst 2011-02-16, 09:58 #2
it-shoppen it-shoppen är inte uppkopplad
Nykomling
 
Reg.datum: Dec 2008
Inlägg: 30
it-shoppen it-shoppen är inte uppkopplad
Nykomling
 
Reg.datum: Dec 2008
Inlägg: 30
Jag har kommit så här långt men det fungerar ej.


<?php
set_time_limit(10000);

$list = file_get_contents("listan.txt");
$urls = explode("\n",$list);
foreach($urls as $url)
{

$artid = substr("$url", 36, 6);

$ch = curl_init($url);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);

$file = curl_exec ($ch);

file_put_contents("$artid.htm",$file,LOCK_EX);

curl_close ($ch);

}

echo $file;


?>
it-shoppen är inte uppkopplad   Svara med citatSvara med citat