PHP as a substitute for JAVA or any OOP ????

Discussion for various published PHP frameworks, including Zend Framework, CodeIgniter, Kohana, CakePHP, Yii, Symfony, and others.

Moderator: General Moderators

Post Reply
shehan31
Forum Commoner
Posts: 59
Joined: Sun Aug 29, 2010 5:24 am

PHP as a substitute for JAVA or any OOP ????

Post 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 :?:
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: PHP as a substitute for JAVA or any OOP ????

Post 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.
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: PHP as a substitute for JAVA or any OOP ????

Post by VladSun »

There are 10 types of people in this world, those who understand binary and those who don't
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: PHP as a substitute for JAVA or any OOP ????

Post by John Cartwright »

VladSun wrote:http://winbinder.org
Wow it's really come a long way.

//backs out of thread
shehan31
Forum Commoner
Posts: 59
Joined: Sun Aug 29, 2010 5:24 am

Re: PHP as a substitute for JAVA or any OOP ????

Post 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.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: PHP as a substitute for JAVA or any OOP ????

Post 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.
(#10850)
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: PHP as a substitute for JAVA or any OOP ????

Post 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. :offtopic:
Post Reply