示例代码:
PHP代码
- <?php
- $url_this = "http://".$_SERVER ['HTTP_HOST'].$_SERVER['PHP_SELF'];
-
-
- $Shortcut = "[InternetShortcut]
- URL={$url_this}
- IDList=
- IconFile=http://www.souab.com/favicon.ico
- IconIndex=1
- [{000214A0-0000-0000-C000-000000000046}]
- Prop3=19,2
- ";
- Header("Content-type: application/octet-stream");
- header("Content-Disposition: attachment; filename=不懂戀愛魚兒.url;");
- echo $Shortcut;
- ?>
PHP代码
- <?php
-
- $Shortcut = "[InternetShortcut]
- URL=http://www.souab.com
- IDList=
- IconFile=http://www.souab.com/favicon.ico
- IconIndex=1
- [{000214A0-0000-0000-C000-000000000046}]
- Prop3=19,2
- ";
- Header("Content-type: application/octet-stream");
- header("Content-Disposition: attachment; filename=不懂戀愛魚兒.url;");
- echo $Shortcut;
- ?>