PHP将网页设置为桌面快捷方式

WBOY
Release: 2016-06-20 13:03:10
Original
1021 people have browsed it

在不少的SNS类网站、论坛中,能看到一些个将网页设置为桌面快速方式的按钮!

此版本支持多浏览器!

<html>
<head>
    <title>将网页设置为桌面快捷方式php版 - scutephp.com</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<a href=&#39;shorturl.php&#39;>保存到桌面</a>
</body>
</html>
Copy after login

其中shorturl.php文件的源码如下:

<?php
    $Shortcut = "[DEFAULT]
    BASEURL=http://
www.scutephp.com/
    [InternetShortcut]
    URL=http://www.scutephp.com
    IDList=
    IconFile=http://www.scutephp.com/favicon.ico
    [{000214A0-0000-0000-C000-000000000046}]
    Prop3=19,2
    ";
    header(&#39;Content-Type: application/octet-stream&#39;);
    header("Content-Disposition: attachment; filename=PHP建站教程.url");
    echo $Shortcut;
?>
Copy after login

 


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!