php输出上载到桌面的桌面图标

WBOY
Release: 2016-06-13 13:11:28
Original
1325 people have browsed it

php输出下载到桌面的桌面图标

<?php //tuzwu@qq.com for www.xiaojudeng.com
$Shortcut = "[InternetShortcut]
URL=http://www.xiaojudeng.com/#shortcut
IconFile=http://www.xiaojudeng.com/faviconbig.ico
IconIndex=1
IDList=
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2
";
Header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=小桔灯分类信息网.url;");
echo $Shortcut;
?>
Copy after login


保存为php文件,点击链接后即可下载到桌面图标

不同系统可能会有不显示ico图标的问题,请试试下面的代码:
[DEFAULT]
BASEURL=http://www.xiaojudeng.com/
[InternetShortcut]
URL=http://www.xiaojudeng.com/#shortcut
Modified=70BF4B88E372CC0124
IconFile=http://www.xiaojudeng.com/faviconbig.ico
IconIndex=1
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!