Home >Backend Development >PHP Tutorial >Code to send the current web page to the desktop_PHP tutorial
Send the web page to the desktop PHP language code.
First of all, we need to make preparations. We must first upload the ico icon file of our website so that the icon will be displayed when it is sent to the desktop.
Then create a new php file named shorturl and put the following code in it
$Shortcut = “[InternetShortcut]
URL=http://your domain name/
IDList=
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2
“;
Header(“Content-type: application/octet-stream”);
header(“Content-Disposition: attachment; filename=filename.url;”);
echo $Shortcut;
?>
Then save and transfer to the root directory of the website,
Add the following code to the website call page.
1