Generate Windows .lnk file with PHP

Posted by Andrei on Stack Overflow See other posts from Stack Overflow or by Andrei
Published on 2010-06-08T16:25:56Z Indexed on 2010/06/08 16:32 UTC
Read the original article Hit count: 223

Filed under:
|
|
|
|

Hello,

I'm working on a project which involves an FTP server running ProFTPd and a PHP/MySQL backend that creates accounts for users.

Upon the creation of accounts, users are sent e-mails with their account details and instructions for downloading FileZilla or CyberDuck, depending on their OS, detected via user-agent string.

To make things easier for novices, I thought of having .lnk files generated for FileZilla with the account logins details as parameters, so they would just have to click on the .lnk files to open up the server. This is not crucial feature but more of a technical challenge.

My questions are :

  • is this even feasible ? are there any alternatives (eg. generating a .bat with a script pointing to the Filezilla executable ?)
  • are there any issues, perhaps with relative / absolute paths pointing to the executable ?
  • to go even further, what would be the simplest way of providing users with software with FTP access on a single account / single server (web interface is not an option).

© Stack Overflow or respective owner

Related posts about php

Related posts about Windows