<?php
$Shortcut = "[InternetShortcut]
URL=http://www.shuakc.com/
IDList=
IconFile=http://www.shuakc.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;
?>
说明:以上代码运行后会提示下载,此时保存在电脑桌面上即可(保存后为快捷方式,点击直接打开网站)。
注意:以上代码保存时文件名会出现乱码(主要是指中文),这时你要注意设置网页编码了呵~~