PHP-GTK

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
fatal
Forum Contributor
Posts: 118
Joined: Sat Apr 20, 2002 10:47 am
Location: East Coast

PHP-GTK

Post by fatal »

Ive tired to install it on my computer, but no luck. gtk.php.net isnt that big of help either. Is there a tutorial on installation of something out there?
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

Follow these instructions:

Code: Select all

Welcome to php-gtk for Win32.

The binary distribution for php-gtk contains this structure

php4				->	php and php-gtk binary files
winnt				->	the default php.ini file
winntsystem32		->	gtk binaries used by the extension
samples			->	a few samples to demonstrate the usage
README.TXT			->	this file.

How to install install:

copy php4 to your existing php directory. If this is a new instalation you 
should create c:php4 and copy the files to this directory.

copy winnt to you winnt directory. On Windows NT and Windows 2000 that is c:winnt.
On Windows 95/98 that is c:windows. If you have an existing php.ini you dont need to copy this file.

copy winntsystem32 to you winntsystem32 directory. On Windows NT and Windows 2000 that is c:winntsystem32.
On Windows 95/98 that is c:windowssystem32.

copy samples to the location where you want to run your scripts (c:php4samples)

How to use:

Php-gtk applications can be started from the command line (or a shortcut) with this syntax:

	c:php4php -q c:php4sampleshello.php
User avatar
fatal
Forum Contributor
Posts: 118
Joined: Sat Apr 20, 2002 10:47 am
Location: East Coast

thanks

Post by fatal »

w0rd jason, ive been dying to work with it. :D
User avatar
hex
Forum Commoner
Posts: 92
Joined: Sat Apr 20, 2002 3:20 am
Location: UK

Post by hex »

I had it working before I flattened my system, and I could run apps thru gtk etc. Thing is, how can one make a standalone PHP-GTK executable? Like a Win32 EXE file? GTK files are stil .php, you have to do "Open With" or something, and that aint distributable, etc.

Is it possible to do this?
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

I am sure it is, though I don't know how personally. This is something I would be interested in as well. Though, frankly, you could do something where allow the person to download the app, and have a typical installer put the files where they need to go (installing PHP-GTK in the process) and actually have a simply script written in VB or C/C++ that runs that opens a console and writes in the correct command, running the program.

However, as far as compiling, wasn't there a program that would turn PHP programs into windows .exe's?

I google'd for it, but couldn't find anything.

Maybe someone else.
User avatar
Phirus
Forum Commoner
Posts: 37
Joined: Thu Apr 18, 2002 4:10 pm
Contact:

Post by Phirus »

I came across this a while back, i think I posted it on EW..

Triplehash Serlient - http://www.triplehash.com/

PhIrUs
User avatar
hex
Forum Commoner
Posts: 92
Joined: Sat Apr 20, 2002 3:20 am
Location: UK

Post by hex »

Looks good, anyone got a full version they fancy sending me to 'evaluate'?
Post Reply