Home > Article > Backend Development > Code to create web page desktop shortcut using PHP_PHP tutorial
Create a new PHP document: the name is easy to remember, such as: shortcut.php
What’s in the PHP documentation:
Code
$Shortcut = "[InternetShortcut]
URL=http://www.hake.cc/
IDList=
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2
";
Header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=Script Home.url;");
echo $Shortcut;
?>
If you want the icon to appear, please first ensure that there is a favicon.ico file in the root directory of the website