复制代码 代码如下:
<?php
$shortcut = "[internetshortcut]
url=http://www.your_url.com/
iconfile=http://www.your_icon.com/
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;
?>
但是,iconfile这个图标没有生效;此外,这个是可以支持中文的,如果不支持中文的话,可以加上一行代码:
复制代码 代码如下:
header('content-type: text/html; charset=utf-8');
将该php文件放到服务器apache上,然后访问即可生成一个链接的快捷方式。
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!