PHP Build website Desktop shortcut code share, PHP shortcut _php tutorial

Source: Internet
Author: User

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>


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.