| View previous topic :: View next topic |
| Author |
Message |
beidlerj
Joined: 10 Feb 2006 Posts: 55 Location: Oregon, USA
|
Posted: Thu Mar 02, 2006 2:20 am Post subject: Launch default browser? |
|
|
I don't think such a function exists, but just in case...
Is it possible to make your app launch the user's default web browser and point it at a certain URL? |
|
| Back to top |
|
 |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
|
| Back to top |
|
 |
beidlerj
Joined: 10 Feb 2006 Posts: 55 Location: Oregon, USA
|
Posted: Thu Mar 02, 2006 7:19 pm Post subject: |
|
|
Thanks, Christian!
I always forget to check PEAR, since it's new to me. I just looked, though, and didn't find the package, so I guess you haven't uploaded it yet and it only lives on your own server.
I had to change one thing to get the class to work... it was trying to launch "kfmclient" on my WinXP box. I just changed the | Code: | | function FileLauncher() | to | Code: | | function __construct() | and everything worked after that. Took me a minute to figure out that I had to add "http://" to the beginning of my string parameter to get it to launch the default browser instead of my code editor for .php files. Duh... guess I need more coffee. Hehe.  |
|
| Back to top |
|
 |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
Posted: Thu Mar 02, 2006 10:39 pm Post subject: |
|
|
| I didn't apply in PEAR with that package yet, that's why I gave the URL to my page :) |
|
| Back to top |
|
 |
|