Re: php-gtk instl trbl cont'd

From: Date: Tue, 30 Apr 2002 16:58:44 +0000
Subject: Re: php-gtk instl trbl cont'd
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-1867@lists.php.net to get a copy of this message
Hi Markus, You are right the -f option is not needed with the CLI version on Win32. When I first tested this I must have had a bad installation. Perhaps I should check the distribution to make sure everything is actually working. - Frank > Hi, > > whops? cli was designed to even to not require the -f switch > anymore, see the help output: > > Usage: php [options] [-f] <file> [args...] > > Doesn't this apply to the win32 version too? > > - Markus > > On Mon, Apr 29, 2002 at 09:59:44AM -0700, Frank M. Kromann wrote : > > Hi All, > > > > The lates distribution (0.5.1) for Win32 includes the new CLI version of php.exe. This > > version requires -f before the script name: > > > > c:\php\php -f c:\php\gtksamples\hello.php > > > > The -q option was for the old CGI version, and was used to disable the HTTP headers. This > > version does not send HTTP headers. > > > > I hope this helps ? > > > > - Frank > > > > > swap? > > > :) > > > ----- Original Message ----- > > > From: "Daniel García" <dani@buitre.pronym.org> > > > To: <php-gtk-general@lists.php.net> > > > Sent: Monday, April 29, 2002 1:19 PM > > > Subject: Re: [PHP-GTK] php-gtk instl trbl cont'd > > > > > > > > > > > > > > Hi Steph, > > > > > > > > Yes, I'm a "fortunate" user of win2K... > > > > > > > > -- Daniel Garcia > > > > > > > > > > > > > > > > On Mon, 29 Apr 2002 11:56:18 +0100, Steph wrote: > > > > > > > > >Daniel, hi, > > > > > > > > > >I think it depends which win32 you happen to be running, I've had > > > > >reports from others on win2K that there's been no problem with shifting the directory. This > > > > >doesn't work under win98, is all I can add to the current > > > > info. > > > > > > > > > >----- Original Message ----- > > > > >From: "Daniel García" <dani@buitre.pronym.org> > > > > >To: <php-gtk-general@lists.php.net>; "Kirk Babb" > > > > ><kbcd@worldnet.att.net> > > > > >Sent: Monday, April 29, 2002 11:49 AM > > > > >Subject: Re: [PHP-GTK] php-gtk instl trbl cont'd > > > > > > > > > > > > > > >> > > > > >> Hi, > > > > >> > > > > >> I'm copying the reply from Markus, which worked for me > > > > >> > > > > >> Hope that helps............ > > > > >> > > > > >> -- Daniel Garcia > > > > >> > > > > >> > > > > >> > > > > >> On Sat, Feb 02, 2002 at 10:22:55AM +0800, Simon Wheeler wrote : > > > > >> > HI again, I can still not get 0.5 to run unless php is in the > > > > >> > c:\php4 directory, > > > > >> > putting the PHP .exe that ships with 0.5 anywhere else fails. > > > > >> > > > > > >> > can anyone else on windows confirm otherwise please. > > > > >> > > > > > >> > If not I guess its a bug?? > > > > >> > > > > >> I've no problems with putting it in a non-standard path. In > > > > >> fact, I _never_ put anything in c:\php4\ because every win32 > > > > >> binary defaults to that and this would break almost > > > > >> everything when using different versions. I'm using W2K. > > > > >> > > > > >> I'll describe what I did: > > > > >> > > > > >> .) downloaded php-gtk-0.5.0-win32.zip to c:\php> >> .) > > > > >> extract whole content to C:\php\php-gtk-0.5.0-win32> >> .) opened dos prompt, changed > > > > >> directory to C:\php\php-gtk-0.5.0-win32\php4 > > > > >> .) created a php.ini file with 'extension_dir = .' > > > > >> .) ran 'php -f C:\php\php-gtk-0.5.0-win32\test\gtk.php' > > > > >> and it popped up > > > > >> > > > > >> This was my first attempt and it worked. I've nothing in > > > > >> c:\winnt\ related to php because this would mean hell with > > > > >> different PHP versions. > > > > >> > > > > >> The win32 console binary has a nasty habbit that when you > > > > >> type something wrong and a file cannot be found there's no > > > > >> error output: > > > > >> > > > > >> .) 'php -f php -f C:\php\php-gtk-0.5.0-win32\test\gt.php' > > > > >> > > > > >> Notice the typo! There will be no error message. There will > > > > >> be returned -1 to the shell process but unlikely you catch > > > > >> this on your first try. > > > > >> > > > > >> If you don't set the php.ini appropriate you should get an > > > > >> error like this: > > > > >> > > > > >> C:\php\php-gtk-0.5.0-win32\php4>php -f > > > > >> C:\php\php-gtk-0.5.0-win32\test\gtk.php > > > > >> <br /> > > > > >> <b>Warning</b>: Unable to load dynamic library > > > > >> 'C:\PHP4/php_gtk.dll' - The module couldn't be found. > > > > >> in <b>C:\php\php-gtk-0.5.0-win32\test\gtk.php</b> on line > > > > >> <b>6</b><br /> > > > > >> <br /> > > > > >> <b>Fatal error</b>: Undefined class name 'gtk' > > > > >> in <b>C:\php\php-gtk-0.5.0-win32\test\gtk.php</b> on line <b>2661</b><br > > > > >> /> > > > > >> > > > > >> HTH > > > > >> > > > > >> - Markus > > > > >> > > > > >> ps: Frank, do you think you could bundle a debug version for win32 > > > > >> too? > > > > >> > > > > >> > > > > >> > > > > >> On Sun, 28 Apr 2002 16:59:14 -0500, Kirk Babb wrote: > > > > >> > > > > >> >Steph wrote: > > > > >> > > > > > >> >'display the code' where??? > > > > >> > > > > > >> >from my initial email: > > > > >> >: > > > > >> >>>The sample programs, when tested, will only display the > > > > >> >>>code itself when > > > > >> >run from the >>command prompt. > > > > >> > > > > > >> >All code appears in the command prompt, just as you would normally > > > > >> >see it > > > > >> >when running a php script from a command prompt. Which isn't > > > > >> >what I > > > > >> >expected to see, since this is an example of a "windowed > > > > >> >app". > > > > >> >I am following these directions from the readme included with the > > > > >> >distribution: > > > > >> > > > > > >> >Php-gtk applications can be started from the command line (or a > > > > >> >shortcut) > > > > >> >with this syntax (modified for my directory names) > > > > >> > > > > > >> > c:\php\php -q c:\php\gtksamples\hello.php > > > > >> > > > > > >> > > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> -- > > > > >> PHP-GTK General Mailing List (http://gtk.php.net/) > > > > >> To unsubscribe, visit: > > > > >> http://www.php.net/unsub.php > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > PHP-GTK General Mailing List (http://gtk.php.net/) > > > > To unsubscribe, visit: > > > > http://www.php.net/unsub.php > > > > > > > > > > > > > -- > > > PHP-GTK General Mailing List (http://gtk.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > > > > > > > -- > > PHP-GTK General Mailing List (http://gtk.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > Please always Cc to me when replying to me on the lists. > GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc > "Mind if I MFH ?" "What QA did you do on it?" "the usual?" > "ah... none :)" > > -- > PHP-GTK General Mailing List (http://gtk.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

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