php实例

关注公众号 jb51net

关闭
首页 > 网络编程 > PHP编程 > php实例 > PHP URL快捷方式

PHP 输出URL的快捷方式示例代码

作者:

输出URL的快捷方式的实现方法有很多,在本文将为大家介绍下使用php是如何实现的,感兴趣的朋友可以参考下,希望对大家有所帮助
复制代码 代码如下:

<?php
/**
* Internet Shortcut
*
* Add the following into "head":
* <link href="favicon.ico" rel="icon" type="image/x-icon" />
* <link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
* <link href="favicon.ico" rel="bookmark" type="image/x-icon" />
*/
$shortcut = '[InternetShortcut]
URL=http://onens.com/
IDList=
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2
';
header('Content-type: application/octet-stream');
header('Content-Disposition: attachment; filename=Onens.Com.url;');
echo $shortcut;
阅读全文