Home > php教程 > php手册 > body text

PHP生成网站桌面快捷方式代码分享,php快捷方式

WBOY
Release: 2016-06-13 09:24:08
Original
888 people have browsed it

PHP生成网站桌面快捷方式代码分享,php快捷方式

PHP生成桌面快捷方式就是这么的简单,大家生成的时候改下你要生成的网站即可。

dianji.html代码:

复制代码 代码如下:


生成左面快捷方式

shengcheng.php代码:

复制代码 代码如下:


//网站生存左面快捷方式---功能

$url = $_GET['url'];

$filename = urldecode($_GET['name']);

$filename = iconv('GBk','utf-8',$filename);//字符集转换(没有需要转的就不转)

if (!$url || !$filename) exit();

$Shortcut = "[InternetShortcut]

URL={$url}

IDList=

[{000214A0-0000-0000-C000-000000000046}]

Prop3=19,2";

header("Content-type: application/octet-stream");

header("Content-Disposition: attachment; filename={$filename}.url;");

echo $Shortcut;

?>

用PHP写一个下载页面到桌面的快捷方式的代码 网站打开后显示下面问题,问怎解决

你要写一个单独的页面来创建快捷方式,我估计你在这之前就有内容在页面上输出了,所以抱着个错

a.php
----------------------------------
$url = $_GET['url'];
$filename = urldecode($_GET['name']);
$filename = iconv('utf-8','GBk',$filename);//字符集转换
if (!$url || !$filename) exit();
$Shortcut = "[InternetShortcut]
URL={$url}
IDList=
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2
";
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename={$filename}.url;");
echo $Shortcut;

生成的时候做个超链接
快捷方式
 

网站创建桌面快捷方式代码

是一段js代码,百度搜 JS创建桌面网址快捷方式

html代码

#47;/W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/...al.dtd">



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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template