Re: New PHP-GTK Site (fwd)
| From: | Peter Kmet | Date: | Thu, 29 Mar 2001 08:04:05 +0000 |
| Subject: | Re: New PHP-GTK Site (fwd) | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-1167@lists.php.net to get a copy of this message | ||
Hello everybody,
especially you out there willing to help beginners to start using this
fantastic PHP-GTK combination. As for me, I m very new to GTK but not new
to PHP and I had to break-through many questions till I got shiny new
php-gtk scripts running (Linux). But I did it so if it helps to somebody
save his/her time...
All you have to do start writing php-gtk apps (suppose you have
nothing). You have to had GTK+ 1.2.6 already installed
(e.g. RedHat 6.2+ is OK). It comes with GNOME, so if you are
running GNOME you should be fine:
1. till PHP 4.0.5 is not out there, you have to use PHP
right-out-from-the-cvs. To do this, go to www.php.net into download
section and follow instructions to extract PHP from CVS
repository. Instructions are very fool-proof so dont worry. Do not
forget to get Zend and TSRM as well. Run scripts as described there. For
those folks behind the firewalls please note, CVS uses special port number
to connect to CVS server. You should have cvs package installed on you
machine too.
2. continue with normal PHP build process, but make PHP as stand-alone
CGI, not apache module or whatever. In php4 source dir just type
./configure, then make and finaly make install. This will make CGI version
of PHP.
3. get php-gtk from CVS repository, described on gtk.php.net and follow
instructions, run required scripts as described (phpize,.etc...)
4. now you should have all stuff ready. Go to test/ directory in php-gtk
source dir and just type php gtk.php & (running X of course).
5. finaly look somewhere like www.gtk.org to learn about GTK api and get
amazed by programming using php-gtk.
Thank you for php, gtk and php-gtk !
Peter Kmet