Programming, website development forum Get latest updates by RSS Follow TechnicalTalk on Twitter Follow TechnicalTalk on Facebook 
HomeSearchRecent PostsLoginRegisterContact Us

Username  
Password    
  Forgot your password?  

Pages: [1]   Go Down
 
  Email this topic  |  Print
0 Members and 1 Guest are viewing this topic.

Anyone use PHP not on the web?

 
webmaster forum
polas  Offline
Activity
33.33%
 
Code Guru
Gender: Male
Posts: 1399
Topics: 85
WWW
April 08, 2009, 02:46:57 AM

PHP also supports being used outside of a web environment (as a "normal" programming language, to construct desktop applications.) Yet I have never really heard of anyone using it for such, I know I wouldn't. Has anyone got any experience of this? I do like the idea of being able to swap an application really easily between being used as a desktop one and being a web app.

Mesham Type Oriented Parallel Programming Language, Free online technical support
 
webmaster forum
Admin  Offline
*
 
Code Guru
Location: India
Gender: Male
Posts: 1387
Topics: 105
NaviBuster NaviBuster
WWW
April 08, 2009, 09:43:52 PM

Are you talking about PHP .net OR pure PHP programming? If I am not wrong then there exists PHP .net too but it is not that much popular.

Also I never heard of using PHP for offline development like desktop software, can we really do it with PHP?
 
webmaster forum
polas  Offline
Activity
33.33%
 
Code Guru
Gender: Male
Posts: 1399
Topics: 85
WWW
April 09, 2009, 03:24:44 AM

Pure PHP, yes it can be done - for instance you can invoke PHP from the command line (i.e. if required for a cron job.)

Mesham Type Oriented Parallel Programming Language, Free online technical support
 
webmaster forum
shefeekj  Offline
For Technical Information
Activity
0%
 
New Coder
Posts: 26
Topics: 11
WWW
April 14, 2009, 11:04:18 PM

Is it possible...i am totallly un aware of it.. i thought PHP is only for developing web applications.can i have any tutorials regarding how php can used to develop desktop applications

http://www.shefeekj.com
 
webmaster forum
polas  Offline
Activity
33.33%
 
Code Guru
Gender: Male
Posts: 1399
Topics: 85
WWW
April 15, 2009, 02:45:07 AM

Sure, at its simplest. if you have a webserver or something, via bash invoke PHP with a php script, obviously be careful what script you use but it will be functional from the CLI assuming it is written to support such.

More complex, actual desktop applications can be made with php - have a look at the two following links

http://gtk.php.net/ (php bindings for GTK)
http://www.devx.com/opensource/Article/21235

Mesham Type Oriented Parallel Programming Language, Free online technical support
 
webmaster forum
shefeekj  Offline
For Technical Information
Activity
0%
 
New Coder
Posts: 26
Topics: 11
WWW
May 07, 2009, 01:44:08 AM

Hey ..It is possible..The version is called php gtk .... .the details are available at
http://www.shefeekj.com/php-gtk-php-for-desktop-applications.html

http://www.shefeekj.com
 
webmaster forum
polas  Offline
Activity
33.33%
 
Code Guru
Gender: Male
Posts: 1399
Topics: 85
WWW
May 08, 2009, 04:11:44 AM

Have a look at my post above - not sure how affective and responsive it is though

Mesham Type Oriented Parallel Programming Language, Free online technical support
 
webmaster forum
Admin  Offline
*
 
Code Guru
Location: India
Gender: Male
Posts: 1387
Topics: 105
NaviBuster NaviBuster
WWW
June 08, 2009, 03:06:41 AM

Thanks for posting these links and clearing my doubt. I am surly going to take a look at those articles.
 
webmaster forum
Activity
0%
 
New Coder
Posts: 42
Topics: 4
WWW
July 23, 2009, 07:15:05 AM

Very enlightening. I wasn't aware this was possible. The only way I figured doing something like this was using Adobe Air or something. Thanks  shiny

www.m-forums.com - The broadest finance-related discussion forum.
We have just launched and need people to join and contribute. Help is greatly appreciated Smiley
 
webmaster forum
Admin  Offline
*
 
Code Guru
Location: India
Gender: Male
Posts: 1387
Topics: 105
NaviBuster NaviBuster
WWW
July 25, 2009, 10:11:32 AM

Very enlightening. I wasn't aware this was possible. The only way I figured doing something like this was using Adobe Air or something. Thanks  shiny

Did you developed some applications using Adobe Air?

can you share you experience?
 
webmaster forum
Corazu  Offline
Activity
0%
 
New Coder
Posts: 15
Topics: 1
July 25, 2009, 11:28:12 AM

I wouldn't be caught dead using PHP for a desktop application. You've got much better options in from C to C#, Java or any of the other .NET languages. PHP was built for the web and that's generally where it belongs.
 
webmaster forum
polas  Offline
Activity
33.33%
 
Code Guru
Gender: Male
Posts: 1399
Topics: 85
WWW
July 26, 2009, 06:04:16 AM

I wouldn't be caught dead using PHP for a desktop application. You've got much better options in from C to C#, Java or any of the other .NET languages. PHP was built for the web and that's generally where it belongs.

lol, I think many people would agree - but it does have a use, being able to run web developed apps on the desktop (with minor modifications) is probably quite an attractive proposition for many. Actually, PHP is a prety good language when you consider it's completeness and support out there - of course it's not the fastest thing, but often that isn't hugely important compared with other factors.

Mesham Type Oriented Parallel Programming Language, Free online technical support
 
webmaster forum
Activity
0%
 
Regular Coder
Posts: 53
Topics: 2
August 03, 2009, 09:08:44 PM

I occasionally use PHP for command line operations that require functionality that I have in a web page that I've built, but outside of that, PHP is a bad choice for non-web purposes.
 
webmaster forum
Activity
0%
 
New Coder
Gender: Male
Posts: 39
Topics: 0
WWW
August 15, 2009, 07:01:18 PM

I looked into the GTK stuff a couple of years ago. To my opinion, it wasn't really usable for a standard desktop application back then. It might be better now, but PHP really does belong on the web and not the desktop.

Phantasy Star: Fringes of Algo | Castle Nintendo - Discussion Community
 
webmaster forum
Activity
0%
 
New Poster
Posts: 11
Topics: 1
September 04, 2009, 08:06:10 PM

I didn't even really know that PHP could be used to create desktop applications thanks for the usefull information, Tomorrow i'm going to try and dabble around with some Desktop PHP probably the simple "Hello World" but hey, it's a start.
 
webmaster forum
ChrisR  Offline
Activity
0%
 
New Poster
Posts: 7
Topics: 0
December 18, 2009, 08:27:12 PM

No. I think PHP is a one trick pony - it's for use on web stuff. In my opinion, doing anything else with it is beyond it's scope more or less. Right tool for the right job...you'd be better suited picking up another language too Smiley
 
webmaster forum
john14317  Offline
Activity
0%
 
Skilled Coder
Posts: 149
Topics: 0
July 13, 2011, 05:49:27 AM

I've found it fairly easy to use and get round which makes a nice change compared to all the others out there.

payday loans
instant online cash advance
 
webmaster forum
kellylsn  Offline
Activity
0%
 
Professional Coder
Posts: 229
Topics: 7
July 17, 2011, 10:16:19 PM

No, I had not use it for the purpose other than web development.

Payday Loan
Online Easy Loans
 
webmaster forum
netshet  Offline
Activity
0%
 
Regular Coder
Posts: 73
Topics: 2
WWW
August 08, 2011, 11:37:18 PM

i can not use out of php in web

hair transplant
 
  Email this topic  |  Print
Pages: [1]   Go Up
 
Jump to:  



Powered by SMF 1.1.15 | SMF © 2011, Simple Machines


Google visited last this page February 03, 2012, 05:11:01 PM