您好,欢迎访问一九零五行业门户网

PHP实现发表文章时自动保存图片_PHP教程

$value) {
$get_file = file_get_contents($value);
$filetime = time();
$filepath = ../uploadfile/.date(y,$filetime)./.date(m,$filetime)./;
!is_dir($filepath) ? mkdirs($filepath) : null;
$filename = date(ymdhis,$filetime).random(1).'.'.substr($value,-3,3);
$fp = @fopen($filepath.$filename,w);
@fwrite($fp,$get_file);
fclose($fp);
$content1 = preg_replace(/.addcslashes($value,/)./isu, /uploadfile/.date(y,$filetime)./.date(m,$filetime)./.$filename, $content1);
?>
http://www.bkjia.com/phpjc/631969.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/631969.htmltecharticle?php $img_array = array(); $content1 = stripslashes($content1); if (get_magic_quotes_gpc()) $content1 = stripslashes($content1); //echo $content1; preg_match_all(/(src│src)=(http...
其它类似信息

推荐信息