ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.