Home >php教程 >php手册 >用php创建网页桌面快捷方式的代码

用php创建网页桌面快捷方式的代码

WBOY
WBOYOriginal
2016-06-13 11:33:451973browse

 新建一个PHP文档:名字好记就行如:shortcut.php
PHP文档中的内容:
代码

$Shortcut = "[InternetShortcut]
URL=http://www.hake.cc/
IDList=
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2
";
Header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=脚本之家.url;");
echo $Shortcut;
?>
要想出现图标请先确保网站根目录中有 favicon.ico 文件

Statement:
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