Re: problem - Win95

From: Date: Thu, 08 Mar 2001 04:53:56 +0000
Subject: Re: problem - Win95
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-551@lists.php.net to get a copy of this message
Some of the problems could be php-related. the system() function in php will start the new process but not detach it. This will result in the php-gtk application seams to be hanging. It simply waits for the new process to terminate ! We could add (a windows-only) function called gtk_system() allowing gtk applications to start and detach processes. I dont know if this has any interest for *nix version ? - Frank > > 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. > > > -- > PHP GTK Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net > For additional commands, e-mail: php-gtk-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > >

« previous php.gtk (#551) next »