Page 1 of 1
PHP as a substitute for JAVA or any OOP ????
Posted: Thu Jan 20, 2011 4:05 am
by shehan31
Hi all;
I am new to this programming industry. I am learning PHP these days. I would like to ask whether I can use PHP for software devolopment (
except web base systems)
Regards
Shehan31

Re: PHP as a substitute for JAVA or any OOP ????
Posted: Thu Jan 20, 2011 3:26 pm
by John Cartwright
What kind of software are you developing? Tough one to answer without more information.
PHP generally resides behind a web server, but can be easily be run on command line. It can also be compiled to .exe using certain software (although I can't remember), and there are also programs that basically combine IE + Apache to create a standalone .exe website.
I'll assume for now your creating non-GUI software, in that case command line is what your after.
But if your asking can PHP replace languages such as Java, C#, etc, that are generally designed for desktop software development, then no.
Re: PHP as a substitute for JAVA or any OOP ????
Posted: Thu Jan 20, 2011 4:37 pm
by VladSun
Re: PHP as a substitute for JAVA or any OOP ????
Posted: Thu Jan 20, 2011 4:42 pm
by John Cartwright
Wow it's really come a long way.
//backs out of thread
Re: PHP as a substitute for JAVA or any OOP ????
Posted: Fri Jan 21, 2011 1:07 am
by shehan31
Hi John;
Thank you for your valuable reply. Yes I am looking for desktop software devolpment. The reason that for the question is because i've heard about frames in PHP. as i heard in JAVA, JFRAMES can be used in these cases.
Regards
Shehan31
John Cartwright wrote:What kind of software are you developing? Tough one to answer without more information.
PHP generally resides behind a web server, but can be easily be run on command line. It can also be compiled to .exe using certain software (although I can't remember), and there are also programs that basically combine IE + Apache to create a standalone .exe website.
I'll assume for now your creating non-GUI software, in that case command line is what your after.
But if your asking can PHP replace languages such as Java, C#, etc, that are generally designed for desktop software development, then no.
Re: PHP as a substitute for JAVA or any OOP ????
Posted: Fri Jan 21, 2011 2:07 am
by Christopher
shehan31 wrote:The reason that for the question is because i've heard about frames in PHP. as i heard in JAVA, JFRAMES can be used in these cases.
Regards
"frames in PHP" mean HTML frames (i.e., the <frameset> and <frame> tags). "JAVA, JFRAMES" refers to a Swing library for the top level window class. Not even close.
Re: PHP as a substitute for JAVA or any OOP ????
Posted: Fri Jan 21, 2011 2:19 am
by josh
The biggest reason PHP won't go mainstream in the desktop world is lack of multi-threading. Have you looked at python? Its higher level than java. Someone should move this to the right forum.
