Create a new PHP document: The name of a good note on the line such as: shortcut.php What's in the PHP document: Code
The code is as follows: <?php $Shortcut = "[Internetshortcut] url=http://www.jzread.com/ idlist= [{000214a0-0000-0000-c000-000000000046}] prop3=19,2 "; Header ("Content-type:application/octet-stream"); Header ("content-disposition:attachment; Filename= Construction station Teaching network; Echo $Shortcut; ?>
To see the icon, make sure that there are favicon.ico files in the root directory of the Web site Upload to the site, access to address: such as: http://www.jzread.com/shortcut.php will be prompted to download a website called Construction Station Teaching network. url file, saved locally is a shortcut! The following is the ASP implementation code:
The code is as follows: <% Id=int (Request ("id") If id= "" Then id= "1" Title=request ("title") If title= "" Then title= "construction Station teaching Network" disambiguator = "[Internetshortcut]" & vbCrLf disambiguator = disambiguator & "url=http://www.jzread.com/article/" &id& "Htm?desktop" & VbCrLf disambiguator = disambiguator & "idlist=" & VbCrLf disambiguator = disambiguator & "[{000214a0-0000-0000-c000-000000000046}]" & VbCrLf disambiguator = disambiguator & "prop3=19,2" & VbCrLf disambiguator = disambiguator & "" & VbCrLf Response.AddHeader "Content-disposition", "Attachment;filename=" &title& ". url;" Response.ContentType = "Application/octet-stream" Response.Write disambiguator %>
It is to be noted that because of possible security issues that are locked Need to do the following, in the "Construction Station teaching network." URL "---" right--"attribute--" the lock can be accessed, this is like the online download CHM files need similar operations.
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.