Home > php教程 > php手册 > 用php 实现网址的桌面快捷方式下载

用php 实现网址的桌面快捷方式下载

WBOY
Release: 2016-06-13 11:37:26
Original
1425 people have browsed it

用php 实现网址的桌面快捷方式下载,就是访问PHP文件的时候,实现下载网址的快捷方式,就像我们手动在桌面创建一样。

方法:新建一个PHP文档:名字好记就行如:shortcut.php

PHP文档中的内容: 

/* 帮客之家 http://www.bkjia.com */
$Shortcut = "[InternetShortcut]
URL=http://www.bkjia.com/
IDList=
IconFile=http://www.bkjia.com/favicon.ico
IconIndex=1
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2
"; //注意修改上面的网址和图标链接
Header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=烈火学院.url;");
echo $Shortcut;
?>

演示:http://www.bkjia.com/plus/shortcut.php

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template