Re: problems with php_gtk.exe from cweiske.de

From: Date: Wed, 06 Apr 2005 01:27:56 +0000
Subject: Re: problems with php_gtk.exe from cweiske.de
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5745@lists.php.net to get a copy of this message
I've used it like that before without problems, there's just a lot you have to make sure is right. Mind you, this is all for dealing with the orignal PHP-GTK binaries, not the versions from cweiske.de; I've never dealt with those. First off, if you use php_win that doesn't show a console, any prints (that would be sent to the console) crashes the program. It might have been fixed in Christian's program, I don't know. Secondly, you have to make sure you use the right ini file. I used to have the whole command-line string, but I'm not on my home computer right now. But, I think this is what I used: c:\gtk\php4\php.exe -q -c c:\gtk\php4\php.ini -f c:\gtk\samples\simple.php Of course, cd c:\gtk\php4\php.exe needs to be the PHP-GTK binary. the -q keeps PHP from reporting HTTP header info. -c points to the INI file you use; *make sure* this is the one for php-gtk! If there is another php.ini anywhere in your path (for instance, in c:\windows for a server's php), it gets top priority and will probably crash your program! And then, -f specifies the script you want to run. That *should* work from a file association; just make sure it uses the right INI file and you replace the last bit (after -f) with %1 to fill in the file you want. Also, some details off of http://gtk.php.net/manual/en/installusage.php might be of use to you. As far as php-win.exe, I don't know how well all this will work with it. I personally recommend using php.exe instead; to me, a small console window is well worth knowing what's going on. After all, you can easily ignore the console; it even closes when you close out the main program. Again, all this is not for the version off of cweiske.de; but, unless I'm mistaken, that program simply runs the other binaries. This should do the same thing, just a bit more direct. On Apr 5, 2005 12:50 PM, Madeleine D. <mmdrake@bctonline.com> wrote: > Francisco wrote: > >I have problems with php_gtk.exe from cweiske.de > >i cannot make work 2 simple phps with this php_gtk.exe neither the PDF > > creation or the SQL export data. > > Francisco's problem here is that his code works fine from a script basis, > as in 'php_gtk.exe "example.php-gtk" ', but hangs up when he tries to run > it as a registered file to the exe. > > I stripped his code down to a few variable settings and a file creation, > registered '.php-gtk' with php_gtk.exe, and tried to run. I get a 'PHP' > process that hangs, and no file. > > We only run batch files here, so I've never run into this problem before. > Is anybody running registered files w/php_gtk and if so, how? > > Madeleine D. > > -- > PHP-GTK General Mailing List (http://gtk.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.gtk.general (#5745) next »