Hi Group,
I am starting on some project and need to program all kinds of windows with
buttons/textfields/etc.
My natural reaction was to build this in Java, but since I like PHP so much
I thought about giving it a try in PHP.
My problem: I only used PHP inside a webserver untill now, and I have
experience with some simple scripts I build for cronjobs in PHP
(commandline/cli invocation).
My requirements are:
- a memoryhungry continuous proces that could last for days.
- Need windows and all kind of gadgets like buttons/textareas/etc.
- Must run under W$ and *nix. (Additional software installs are no problem)
I was thinking to invoke PHP from commandline without a timeout, overruling
php.ini.
For windowsprogramming I found activestate/tcl, but I have 0 experience with
it.
Is this the right way to go?
Is TCL easy to learn and use?
What other options do I have?
Does anybody have any ideas/suggestions?
Any pittfalls on the road ahead?
Should I just stick to Java?
Thanks for your time.
Regards,
Erwin Moller 7 1265
"Erwin Moller"
<si******************************************@spam yourself.com> wrote in
message news:43***********************@news.xs4all.nl... Hi Group,
I am starting on some project and need to program all kinds of windows with buttons/textfields/etc. My natural reaction was to build this in Java, but since I like PHP so much I thought about giving it a try in PHP. My problem: I only used PHP inside a webserver untill now, and I have experience with some simple scripts I build for cronjobs in PHP (commandline/cli invocation).
My requirements are: - a memoryhungry continuous proces that could last for days. - Need windows and all kind of gadgets like buttons/textareas/etc. - Must run under W$ and *nix. (Additional software installs are no problem)
I was thinking to invoke PHP from commandline without a timeout, overruling php.ini. For windowsprogramming I found activestate/tcl, but I have 0 experience with it.
Is this the right way to go? Is TCL easy to learn and use?
What other options do I have? Does anybody have any ideas/suggestions? Any pittfalls on the road ahead? Should I just stick to Java?
Thanks for your time.
http://gtk.php.net/
:)
Give that a go, and if it's not good enough, use Java.
Regards, Erwin Moller
hope that helps!
dave
Erwin Moller wrote: I was thinking to invoke PHP from commandline without a timeout, overruling php.ini.
Take a look at this: http://www.php.net/manual/en/features.commandline.php
PHP-cli has no timeout by default. A PHP can be run in Unix by
prefixing it with #!/usr/bin/php.
"Sjoerd" <sj******@gmail.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com... Erwin Moller wrote: I was thinking to invoke PHP from commandline without a timeout, overruling php.ini.
Take a look at this: http://www.php.net/manual/en/features.commandline.php
PHP-cli has no timeout by default. A PHP can be run in Unix by prefixing it with #!/usr/bin/php.
You can do the same in Windows, if you associate .php (or, say, .xphp) files
with a batch file that calls the PHP interpreter and passes the filename of
the script. This will allow you to run .php/.xphp scripts like they are
..bat files.
dave
Erwin Moller wrote: Hi Group,
I am starting on some project and need to program all kinds of windows with buttons/textfields/etc. My natural reaction was to build this in Java, but since I like PHP so much I thought about giving it a try in PHP. My problem: I only used PHP inside a webserver untill now, and I have experience with some simple scripts I build for cronjobs in PHP (commandline/cli invocation).
My requirements are: - a memoryhungry continuous proces that could last for days. - Need windows and all kind of gadgets like buttons/textareas/etc. - Must run under W$ and *nix. (Additional software installs are no problem)
I was thinking to invoke PHP from commandline without a timeout, overruling php.ini. For windowsprogramming I found activestate/tcl, but I have 0 experience with it.
Is this the right way to go? Is TCL easy to learn and use?
What other options do I have? Does anybody have any ideas/suggestions? Any pittfalls on the road ahead? Should I just stick to Java?
Thanks for your time.
Regards, Erwin Moller
Erwin,
As much as I love PHP, I think I'd do this one in Java (or C++).
PHP has some add-on libraries which get you various gadgets, but I think
Java is more mature in this area.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attglobal.net
==================
Thanks all for your input.
My impression of PHP/GTK is that it is not 100% evolved yet.
I think I'll stick to Java for this one.
Thanks all.
Regards,
Erwin Moller
"Erwin Moller"
<si******************************************@spam yourself.com> wrote in
message news:43***********************@news.xs4all.nl... Hi Group,
I am starting on some project and need to program all kinds of windows with buttons/textfields/etc. My natural reaction was to build this in Java, but since I like PHP so much I thought about giving it a try in PHP. My problem: I only used PHP inside a webserver untill now, and I have experience with some simple scripts I build for cronjobs in PHP (commandline/cli invocation).
My requirements are: - a memoryhungry continuous proces that could last for days. - Need windows and all kind of gadgets like buttons/textareas/etc. - Must run under W$ and *nix. (Additional software installs are no problem)
I was thinking to invoke PHP from commandline without a timeout, overruling php.ini. For windowsprogramming I found activestate/tcl, but I have 0 experience with it.
Is this the right way to go? Is TCL easy to learn and use?
Tcl has its own learning curve. expressions are a bit difficult. all those
square brackets and odd substituion situations with variables.
You can make a complete working dialog in Tcl/Tk with 1 page of code. It's
available for UNIX and was made mainly for X. to make a button,
button .b -text "press me" -command {do something }
pack .b
and after pack, a button pops into the window. "pack .b -side left" does
what you think it does.
it can be difficult to get your gui right. there are different layout
managers, like pack, grid, and a few others I think. Pack doesn't always
act like you want it to, so you have to test & debug a lot.
for OOP, go incr-Tcl. it's considered a built-in lib now. then your stuff
can be entirely event-driven.
Tcl/Tk excels at making GUIs for command-line tools. it has sockets, and can
interface with databases.
PHP is better probably at handling dates, unless something changed I don't
know about.
If you are going to do anything serious with it, get a book. At the time, I
think it was a black book by welch, but that was years ago.
since you know PHP, maybe GTK is a best fit. Or maybe it's Tcl/Tk. I
dunno. I've used both, depending on what I'm doing. I've even used Perl/Tk
and made an FTP GUI, but that was a bit too hard (no docs). What other options do I have? Does anybody have any ideas/suggestions? Any pittfalls on the road ahead? Should I just stick to Java?
Thanks for your time.
Regards, Erwin Moller
"Jerry Stuckle" <js*******@attglobal.net> wrote in message
news:re******************************@comcast.com. .. Erwin Moller wrote: Hi Group,
I am starting on some project and need to program all kinds of windows with buttons/textfields/etc. My natural reaction was to build this in Java, but since I like PHP so much I thought about giving it a try in PHP. My problem: I only used PHP inside a webserver untill now, and I have experience with some simple scripts I build for cronjobs in PHP (commandline/cli invocation).
My requirements are: - a memoryhungry continuous proces that could last for days. - Need windows and all kind of gadgets like buttons/textareas/etc. - Must run under W$ and *nix. (Additional software installs are no problem)
I suggest to you Java or Tcl/Tk. Tcl/Tk has very light overhead and has all
kinds of gadgets. install it if it isn't already on your box and look at
their demos to see the widgets.
Tcl/Tk has a learning curve to it. expect at least 3 full-time months with a
good book to get good at it.
If you already know Java and its widgets, maybe it would be a good idea to
stick with it.
I was thinking to invoke PHP from commandline without a timeout, overruling php.ini. For windowsprogramming I found activestate/tcl, but I have 0 experience with it.
Is this the right way to go? Is TCL easy to learn and use?
What other options do I have? Does anybody have any ideas/suggestions? Any pittfalls on the road ahead? Should I just stick to Java?
Thanks for your time.
Regards, Erwin Moller
Erwin,
As much as I love PHP, I think I'd do this one in Java (or C++).
PHP has some add-on libraries which get you various gadgets, but I think Java is more mature in this area.
-- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. js*******@attglobal.net ================== This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Raaijmakers, Vincent (IndSys,GE Interlogix) |
last post by:
Looking at all the materials available, books, technologies etc etc..
I try to make a decision on what technology to select for a web server design, but I need help.
I know, this question has...
|
by: Steven T. Hatton |
last post by:
Some people have suggested the desire for code completion and refined
edit-time error detection are an indication of incompetence on the part of
the programmer who wants such features. ...
|
by: Lasse Edsvik |
last post by:
Hello
I'm trying to build a simple COM+ app in vs.net using C# and i cant register
it in component manager.....
what more is needed than this:
using System;
using...
|
by: C. (http://symcbean.blogspot.com/) |
last post by:
Hi all,
I am looking for a way to run PHP scripts without using a webserver
(from a MS Windows machine). While there are shareware solutions for
doing this, it strikse me that it might be...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |