Run exe file from php script




















Verify your account to enable IT peers to see that you are a professional. Oliver Kinne This person is a verified professional. However, it's a whole can of worms. You might need to rethink your approach. Technically there are ways, but it's all too much of a security risk. You might be able to add your intranet site to the browser's "safe sites" list and then be able to remotely execute programs.

Jeff wrote: If you are relying on the user to click a link then why not get them to click a shortcut on their desktop? Logansaurus Mar 22, at UTC. I have actually wrote a c program to solve my problem. Thanks spice heads! Maybe it is safe?

Maybe he runs his web server as a user who only have access to that command. Maybe the 'name' program can have multiple running processes at once without concurrency issues. Your points are still valid of course, but they aren't unsolvable. Emil, anything is solveable. Or, in drag racing terms: you can't turn a pig into a ballerina, but you can make a damn fast pig. Still, this is poor design, and I for one don't want to wind up maintaining this crap a few years down the road.

I am trying to make a unit system on web so that we can use it online. Show 2 more comments. Superted Superted 31 6 6 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses. Featured on Meta. There is, however no magic shell that allows Linux to execute arbitrary Windows executables.

Actually, exec will return the last line after command execution. Whereas passthru works as OP wants. I think the passthru command is better, cause I have couple of lines as a result of the name.

David Lively - I wasn't saying don't run php under windows. The OP asked if he could also get the code to work under Linux. John, there's no way to ensure that only your friends will be using the system. That's why we're required to consider security in any application. Also, note that there are functionality issues in play, not just security. We don't know anything about the 'name' command. Maybe it is safe? Maybe he runs his web server as a user who only have access to that command. Maybe the 'name' program can have multiple running processes at once without concurrency issues.

Your points are still valid of course, but they aren't unsolvable. Emil, anything is solveable. Or, in drag racing terms: you can't turn a pig into a ballerina, but you can make a damn fast pig.

Still, this is poor design, and I for one don't want to wind up maintaining this crap a few years down the road. I am trying to make a unit system on web so that we can use it online.

Show 2 more comments. I hope its clear.. Javascript is purely client side scripting. Posted Nov am koolprasadd. Add your solution here. OK Paste as. Treat my content as plain text, not as HTML. Existing Members Sign in to your account.

This email is in use. Do you need your password? Submit your solution! When answering a question please: Read the question carefully. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem.



0コメント

  • 1000 / 1000