Home > Backend Development > PHP Tutorial > ,php代码写一个生成桌面快捷方式

,php代码写一个生成桌面快捷方式

WBOY
Release: 2016-06-13 10:45:41
Original
1543 people have browsed it

求助,php代码写一个生成桌面快捷方式
准备在网页里加一个按钮,点击生成桌面快捷方式的功能。最好是不要自己控制到什么地方,直接就下载到桌面,快捷方式最好有ico图标的。求帮忙解答

------解决方案--------------------

PHP code
$Shortcut = "[InternetShortcut]URL=http://www.vcoo.ccIDList=IconFile=http://www.vcoo.cc/favicon.icoIconIndex=1[{000214A0-0000-0000-C000-000000000046}]Prop3=19,2";Header("Content-type: application/octet-stream");header("Content-Disposition: attachment; filename=微酷博客.url;");echo $Shortcut;<br><font color="#e78608">------解决方案--------------------</font><br>php搭配activex就能做到了,但是activex需要安全的數字簽名,否則沒多大用處<br><font color="#e78608">------解决方案--------------------</font><br>
Copy after login
探讨

引用:

不受控肯定是不行的


不受控也行,可以提示下载,但要直接下载快捷方式到桌面。

PHP code

$Shortcut = "[InternetShortcut]
URL=http://www.m1905.cn/
IDList=
IconIndex=43
IconFile=C:\\Windows\system32\SHELL32.dll
……
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