欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

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

程序员文章站 2023-11-20 12:51:04
复制代码 代码如下:
复制代码 代码如下:

<?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;