Re: problem - Win95
| From: | Mike | Date: | Thu, 08 Mar 2001 03:16:21 +0000 |
| Subject: | Re: problem - Win95 | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-541@lists.php.net to get a copy of this message | ||
On Wed, 7 Mar 2001 anet@webmedia.pl wrote:
> function starter()
> {
> system("start http://www.pathtomysite.pl/");
> }
>
> normally, typed in the msdos mode prompt, it should start the
> default browser and open the adress specified above in it.
>
> well, it doesn't. it rather hangs up the script. the button freezes
> pressed, and the browser doesn't appear.
>
> but - when i end the php-gtk task from task manager - guess what -
> browser starts - and it starts with the desired site open....
I think this is probably a problem with Windows. I don't think I can help
much, but I just noticed with my little MP3 launcher (which simply executes
'START "d:\some.mp3") that if WinAmp isn't already running, the script will
hang. WinAmp does however start. If I already have WinAmp running, it works
perfectly fine.
If I start the mp3 without WinAmp already running, the PHP-GTK script will
hang completely until I close WinAmp. Interestingly, when I do close WinAmp,
I got some information from one of the plugins I have loaded appearing in
the DOS window.
Back to the problem at hand. If I change the command to:
start c:\progra~1\intern~1\iexplore.exe http://blah.blah.com/
it almost works. It runs Internet Explorer and goes to the site, but the
script hangs until you close the browser. My guess would be that there's a
switch for IE's command line to tell it to use an existing browser window
which might solve the problem (at least, if there's already a browser window
open)
--
Michael.