>What's wrong with
>
> system("start $url")
>
>Providing $url starts with "http://" the shell does the right thing (see the
>ShellExeceute API -- which start fronts -- for details).
In my tests, I've found that causes some problems. I don't know why - my
work machine (a 233mhz slowpoke running W98) worked just fine, and opened
up Mozilla, Opera and IE using the above code. Sometimes, the browser would
open up a little slower than the API call, but that wasn't that big of a
deal.
Just now, I tried it on my home machine (a 450mhz Win98) running Internet
Explorer and Opera, and my program would pause/freeze a good ten seconds
after the command was executed, then IE would open, display the URL, and
then the program would crash.
Phooey. The one thing I do like about the 'start' trick as opposed to the
API call is that the 'start' trick ALWAYS opens a new browser window - the
API call will take over an existing browser window with the new URL, which
can get annoying if someone is actively browsing somewhere else.
>Note sure if this will work, but you may not have to change your
>$SETTINGS->{user}->{browser_path} with the regex above. You should be
>able to
>
>system(qq|"$SETTINGS->{user}->{browser_path} ", $url|);
This worked nicely - thanks.
--
ICQ: 2927491 / AOL: akaMorbus
Yahoo: morbus_iff / Jabber: [EMAIL PROTECTED]
[EMAIL PROTECTED] / http://www.disobey.com/