|
Posted by Norman Peelman on 08/14/07 23:29
Erwin Moller wrote:
> Norman Peelman wrote:
>> Ulf Kadner wrote:
>>> Erwin Moller wrote:
>>>
>>>> I am currently looking into ways to use PHP as my engine, but
>>>> without a browser.
>>>> So far I found the TCL/TK interface. It seems able to do the job,
>>>> but I thought I get in some opinions first before diving futher into
>>>> it.
>>>
>>> PHP-GTK is good for playing a bit. But not usable for real
>>> applications. There is no IDE or something else to build easy an fast
>>> youre applications. All you need will be written piece by piece.
>>>
>>> If you have a lot of time, OK. But time is money. Better to use a
>>> Language, designed for your wishes and fast to code it. (eg. Java, ...)
>>>
>>> So long, Ulf
>>>
>>
>>
>> Umm no, PHP-GTK is a fine choice. There is Glade for building gui's.
>> But, i'd use the language that does what you need it to do.
>>
>> Norm
>
> Thanks Norm and Ulf,
>
> Firstly, I agree that Java would be a better choice to build GUI, but I
> like PHP a lot more these days.
>
> I checked out the Glade website.
> Looks like a nice GUI designer. :)
>
> Could you guide me a little futher?
> As I understand it I can run Glade on my *nix box, and let it generate a
> XML file that contains the instructions for TCL/TK to build the GUI.
>
> Could I use that XML file to recreate the UI on any machine that runs
> PHP with TCL/TK?
> I guess I have to add names of PHP-functions to events then.
>
> Is that correct?
> If so, it sounds like a feasible approach.
>
> Thanks.
> Regards,
> Erwin Moller
First let me re-state that PHP may not provide you with the solution
for your particular problem. It all depends on what you need to
accomplish. That being said, you should notice that Glade will output
many different types of files (PHP, C, Python, Java, etc). So you have
many options. I know that in PHP you can load the entire GUI with a
function call. I imagine it's the same for the other languages as well.
I had no problem creating GUI apps with scrolling lists, images, etc.
I've not done it for awhile (and nothing with GTK2). I also had no
problem throwing PHP/GTK/ environment on a CD and running it from there.
And the files should be cross platform as PHP is and Glade is. Best
thing to do is install it and pour over the examples.
Norm
[Back to original message]
|