Home > Backend Development > PHP Tutorial > Code to create web page desktop shortcut using PHP_PHP tutorial

Code to create web page desktop shortcut using PHP_PHP tutorial

WBOY
Release: 2016-07-22 09:02:37
Original
1371 people have browsed it

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

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/371916.htmlTechArticle Create a new PHP document: the name is easy to remember, such as: shortcut. php Contents in the PHP document: Code?php $Shortcut = [InternetShortcut] URL=http://www.hake.cc/ IDList= [{000214A0-0000-0000 ...
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template