LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-04-2009, 06:19 PM   #1
barghota
Member
 
Registered: Jul 2003
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Debian, FreeBSD
Posts: 94

Rep: Reputation: 38
PHP WebApp with windows clients


Hi guys,

I am in charge of a PHP Web Application project, and that now the client asked me for the possibility to make a windows application which runs on the client machines, and the clients would then use the windows application instead of their web browser (like the process of a client-server applications).

So, I was wondering from where to start reading about this approach or what do I need, a windows client and a PHP web app.

Thanks alot, and any further help would be very much appreciated.
 
Old 05-04-2009, 06:27 PM   #2
vxc69
Member
 
Registered: Jul 2004
Distribution: Ubuntu
Posts: 387

Rep: Reputation: 33
Quote:
Originally Posted by barghota View Post
Hi guys,

I am in charge of a PHP Web Application project, and that now the client asked me for the possibility to make a windows application which runs on the client machines, and the clients would then use the windows application instead of their web browser (like the process of a client-server applications).

So, I was wondering from where to start reading about this approach or what do I need, a windows client and a PHP web app.

Thanks alot, and any further help would be very much appreciated.
Greetings,

One approach for this is to use something like the IE activeX object. Java too has a similar 3rd party IE class. Basically it's the same web app but runs on your own application.

Another slightly harder approach is to create a Server Side interface and then call this interface using HTTP GET and POST calls through your windows app for updating and receiving your centralized data.

I think the second approach might be what you're looking for.



Cheers,
vxc

Last edited by vxc69; 05-04-2009 at 06:30 PM.
 
Old 05-04-2009, 06:39 PM   #3
barghota
Member
 
Registered: Jul 2003
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Debian, FreeBSD
Posts: 94

Original Poster
Rep: Reputation: 38
Thanks for the quick reply vxc.

Yes, the second approach is more suitable. So, if i am right, the approach is turned into a client-server-server approach, where the "client-server"-server part manages the connection between the client and the server, and the client-"server-server" part is the interface which process the HTTP GET and POST requests, right?
 
Old 05-04-2009, 07:05 PM   #4
vxc69
Member
 
Registered: Jul 2004
Distribution: Ubuntu
Posts: 387

Rep: Reputation: 33
Quote:
Originally Posted by barghota View Post
Thanks for the quick reply vxc.

Yes, the second approach is more suitable. So, if i am right, the approach is turned into a client-server-server approach, where the "client-server"-server part manages the connection between the client and the server, and the client-"server-server" part is the interface which process the HTTP GET and POST requests, right?
Kind of. But without complicating it, when your PHP WebApp runs on your browser, it makes HTTP GET/POST queries. What you need to do is simulate this process using something like an INET control in your Windows app. Say user has entered something to a text field. When the user clicks on a button, your program queries the server using the appropriate GET or POST method with the information in the text field and calls this on the appropriate server side PHP page.


Of course there might be a better way to do this that I'm not aware of. I'd leave that to the experts here.



Good luck with your project.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
upload and rotate multiple pictures for webapp paranoid times Linux - Software 3 01-27-2009 03:28 PM
webapp does not start automatically in tomcat craftereric Linux - Software 1 11-05-2008 03:31 AM
Can I have a network w/ a Linux Server & Linux clients & a few MSFT Windows clients bhowerton Linux - Networking 1 04-21-2007 12:45 AM
Webapp that emulates FTP? cabe Linux - Software 16 12-13-2006 09:48 PM
Shared Document Webapp? humbletech99 Linux - Networking 1 12-13-2006 09:09 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration