PHP Build website Desktop shortcut code share, PHP shortcut
PHP generated desktop shortcuts is so simple, when you build the time to change the site you want to build.
Dianji.html Code:
Copy the Code code as follows:
Create a shortcut to the left
shengcheng.php Code:
Copy the Code code as follows:
<?php
Site survival Left Shortcut---function
$url = $_get[' url '];
$filename = UrlDecode ($_get[' name ');
$filename = Iconv (' GBk ', ' utf-8 ', $filename);//Character Set conversion (no turning is required)
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;
?>
Use PHP to write a download page to the desktop shortcut code site after the display of the following questions, ask how to solve
You have to write a separate page to create the shortcut, I guess you have the content on the page before this, so hold a wrong
a.php
----------------------------------
$url = $_get[' url '];
$filename = UrlDecode ($_get[' name ');
$filename = Iconv (' utf-8 ', ' GBk ', $filename);//Character Set conversion
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;
Make a hyperlink at the time of generation
Shortcuts </a>
Site Creation Desktop Shortcut code
is a JS code, Baidu Search JS Create desktop URL shortcut
HTML code
<title>Untitled Document </title></title>