现在做个上传APK格式功能 , 想在APK上传到服务器之后将APK截图并返回到游览器 有知道怎么实现的吗 参考http://dev.appchina.com/et/dev/upload_up.action 这网站就有这个功能 怎么搞的?
解决方案 »
- 写了一个smarty插件,浏览器报错
- php mysql扩展使用mysqli扩展查询结果的问题
- 請問php的工資水平怎樣?
- 谁知道比较好的开源的php投票系统?
- linux VirtualHost的简单问题,在线等
- PHP问题(7.28)在线给分!
- php的问题?急急急????
- 怎么区别对待校园网内、外用户访问的权限分配
- 請大家看一下!www.hooday.com 站点调查圓餅圖怎麼實現的???還有 window.votes.vote 是什麼我看不懂請指教!!
- 问下如何从HTML获取里面的资源连接
- PHP 伪静态路径问题
- Warning: set_time_limit() has been disabled for security reasons in /home/www/we
$zip_file = dirReplace(BF_ROOT . '/upload/tmp/' .self::$LoginObject->rtnUserInfo('userid') . '/pik/' . $this->get('no'));
$icon_file = dirReplace(BF_ROOT . '/upload/tmp/' .self::$LoginObject->rtnUserInfo('userid') . '/pik/icon.png');
//-------
$zip = zip_open($zip_file);
if ($zip) {
while ($zip_entry = zip_read($zip)) {
$file_name=zip_entry_name($zip_entry);
if(str_exists($file_name, 'drawable-xhdpi/icon.png'))
if (zip_entry_open($zip, $zip_entry, "r")) {
/* read binary stream */
$buf = zip_entry_read($zip_entry, zip_entry_filesize($zip_entry));
/* create temporary bmpImg */
if($fp = fopen($icon_file,'w'))
{
if(fwrite($fp,$buf))
{
fclose($fp);
}
}
zip_entry_close($zip_entry);
}
}
zip_close($zip);
}
echo file_get_contents($icon_file);