Click to See Complete Forum and Search --> : creating shortcuts with php?


matsh
12-15-2001, 07:40 PM
Hi folks!

Does anyone know how to create windows shortcuts (.lnk files) with php on unix.
I'd like people to be able to specify a directory and .exe file on their computers and, the php script will create the shortcut and mail it to them.

Any ideas?

/Mats

vincente
12-16-2001, 07:30 AM
Uhm... what's the point?

igebert
12-16-2001, 05:53 PM
That's really some strange idea you have there...however, you'll have to use the file writing functions of PHP.

But maybe you should think again if your users _really_ need this functionality...

-ingmar

matsh
12-18-2001, 05:04 PM
Ok, i'll explain what its for.

I run a couple counter-strike servers. Im setting them up to be invite only (you'll need an account to join).
To be able to play on the servers, you need to add "+exec userpass.cfg" to your shortcut.
Of course most people know how to change their shortcuts :)
The userpass.cfg file has the users username + password in it, and is generatet by php and sent to the user with the invitation email. I just thought it could be nice to also include the shortcut with the mail.
I'v tried to manually alter the shortcut with vi, but windows seem to freak out and explorer.exe crashes.

thanks

/Mats

vincente
12-19-2001, 05:19 AM
Don't you think a howto with pictures would be more usefull?