Php obtains the content of a website and saves it as TXT. next time, it reads the content of a website directly from the txt file. the content is stored as TXT and the content is directly read from the txt file. next time, it reads file_put_contents & nbsp; & nbsp; It seems you can save it! & Nbsp; how to write it! & Nbsp; not written! The code is as follows! & Lt ;? Php retrieves the content of a website and saves it as a TXT file. it will be read from the txt file next time.
Php retrieves the content of a website and saves it as a TXT file. it will be read from the txt file next time.
File_put_contents seems to be saved!
How to write it! No!
The code is as follows!
function get_flash_url( $url )
{
$lines = file($url);
foreach ($lines as $linenum=> $line) {
preg_match_all('|([^<>]+)|',$line,$result);
$swfurl=$result[1][0];
if(!empty($swfurl))
return $swfurl;
}
}
?>
$url=$_SERVER["QUERY_STRING"];
$flashurl= get_flash_url($url);
echo preg_replace("/[&,?]/","",$flashurl);
?>
------ Solution --------------------
After obtaining the flash path, do you want to write the path to a text file?