Maison >développement back-end >tutoriel php > 将网页的快捷方式保留到桌面PHP代码
将网页的快捷方式保存到桌面PHP代码
<?php $Shortcut = "[DEFAULT] BASEURL=http://www.xxxxxx.com/ [InternetShortcut] URL=http://www.xxxx.com/ Modified=B07A55D9386FCA01CA IconFile=http://www.xxxx.com/favicon.ico IconIndex=1"; Header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=xxxx.url;"); echo $Shortcut; ?>?