PHP Generate URL Desktop shortcut
Please help the gods to see where the code is wrong. The generated shortcut is always unable to get to the URL value
url.php
Generate Shortcut
$url =$_request[' url '];
$title =$_request[' title ';
$content = "[Internetshortcut]
Url= ". $url."
idlist=[{000214a0-0000-0000-c000-000000000046}]
hotkey=1626
prop3=19,2
";
Header ("Content-type:application/octet-stream");
Header ("content-disposition:attachment; Filename= ". $title.". URL; ");
Echo $content;
?>
Use the URL: http://127.0.0.1/url.php?title= Buddha said &url=http://www.123.com PHP
Share to: more
------Solution--------------------
Missing iconindex=1
$url =$_request[' url '];
$title =$_request[' title ';
$content = "[Internetshortcut]
url={$url}
Iconindex=1
idlist=[{000214a0-0000-0000-c000-000000000046}]
hotkey=1626
prop3=19,2
";
Header ("Content-type:application/octet-stream");
Header ("content-disposition:attachment; filename={$title}.url; ");
Echo $content;
Use the URL: http://127.0.0.1/url.php?title= Buddha said &url=http://www.123.com