Anyone use PHP not on the web? |
| |
 |
Reputation Power: 17

| | Code Guru Gender:  Posts: 1403 Topics: 86  |
|
|
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.
|
|
|
|
| |
 |
Reputation Power: 19

| | Code Guru Location: India
Gender:  Posts: 1444 Topics: 126  |
|
|
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?
Help us to keep this forum clean. Report the SPAM!
|
|
| |
 |
Reputation Power: 17

| | Code Guru Gender:  Posts: 1403 Topics: 86  |
|
|
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.)
|
|
| |
 |
For Technical Information Reputation Power: 1

| | New Coder Posts: 26 Topics: 11  |
|
|
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
|
|
| |
 |
Reputation Power: 17

| | Code Guru Gender:  Posts: 1403 Topics: 86  |
|
|
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
|
|
| |
|
|
| |
 |
Reputation Power: 17

| | Code Guru Gender:  Posts: 1403 Topics: 86  |
|
|
May 08, 2009, 04:11:44 AM
|
Have a look at my post above - not sure how affective and responsive it is though
|
|
| |
 |
Reputation Power: 19

| | Code Guru Location: India
Gender:  Posts: 1444 Topics: 126  |
|
|
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.
Help us to keep this forum clean. Report the SPAM!
|
|
| |
 |
Reputation Power: 1

| | New Coder Posts: 42 Topics: 4  |
|
|
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 
|
|
| |
 |
Reputation Power: 19

| | Code Guru Location: India
Gender:  Posts: 1444 Topics: 126  |
|
|
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  Did you developed some applications using Adobe Air? can you share you experience?
Help us to keep this forum clean. Report the SPAM!
|
|
| |
 |
Reputation Power: 1

| | 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.
|
|
| |
 |
Reputation Power: 17

| | Code Guru Gender:  Posts: 1403 Topics: 86  |
|
|
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.
|
|
| |
 |
Reputation Power: 1

| | 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.
|
|
| |
 |
Reputation Power: 1

| | New Coder Gender:  Posts: 39 Topics: 0  |
|
|
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.
|
|
| |
 |
Reputation Power: 1

| | 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.
|
|
| |
 |
Reputation Power: 1

| | 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 
|
|
| |
 |
Reputation Power: 2

| | 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.
|
|
| |
 |
Reputation Power: 3

| | Professional Coder Posts: 227 Topics: 7 |
|
|
July 17, 2011, 10:16:19 PM
|
No, I had not use it for the purpose other than web development.
|
|
| |
 |
Reputation Power: 5

| | Professional Coder Posts: 244 Topics: 85  |
|
|
August 08, 2011, 11:37:18 PM
|
i can not use out of php in web
|
|
| |