hi, am Gilbert i developed a desktop application in java and i craeted an autorun of the application.
and i made a webbased application using php.
how can i run the desktop application via php?

Recommended Answers

All 5 Replies

That only works when your PHP script runs on the same machine as your desktop application.

pixelsoul and pritaeas comments are both true. well there's one trick, PHP's exec() can execute exe files, lebian files, Jar files, and Mac OS' executubale file. those that are made of program. Not Media type files.

one trick here is to download the executable file then run the PHP script, if and only if it is a server based application. if want to make the application wider which is world wide web, then install the executable file in the web server or just save it then put all the scripts on the server. make sure that the scripts and the executable files are on the same root folder, otherwise it will fail.

Member Avatar

Having an remote php page access your local machine could be tricky. Do you really need to do this? Seems that that would be a major security issue. I think I'd have a flip if anybody tried to access my PC.

How about the java autorun -> poll website for data -> java

Or is that not possible or perhaps not what you need?

diafol's idea was right and that is what I was also talking about. Please have a little background doing CRON jobs this will be part of your scriptings regarding your question. One another way is doing the jApplet. and if you pursue to do it on jApplet. this forum should be transffered to Java programming, not the Javascript

as for me, I defined my self that cron's acronym to make it easy to remember is Compiled Run-on Online Network. This is not the correct acronym but that's the way I understand what CRON can do. So I defined it my self that way.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.