Heim >Backend-Entwicklung >PHP-Tutorial >PHP生成网站桌面快捷方式代码分享_php技巧

PHP生成网站桌面快捷方式代码分享_php技巧

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 20:35:02986Durchsuche

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;

?>

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn