Problem

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
zeurois
Forum Newbie
Posts: 2
Joined: Wed Jul 20, 2005 5:35 pm

Problem

Post by zeurois »

Hi. I have a web server(windows machine) and i need to logon with a real username(eg. Administrator). Then i want to run executables as the user account from the remote machine(i don't know if i use the right words..). The file must run on the server side...and the platform needs to be php/mysql made(of course, not the logon system)...Is this possible?

Mail me please for further dicussions.

Thanks a lot...it's urgent.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

If it's urgent a more fitting title than "Problem" may have got a faster response.

You can login via Telnet or SSH (I believe there are 3rd party SSH servers for windows) and then execute commands like you're on the local machine.

Using PHP you have access to the shell functions:

http://www.php.net/system
http://www.php.net/exec
http://www.php.net/passthru

This syntax also works:

Code: Select all

$result = `executable_program.exe`; //Note the backticks
zeurois
Forum Newbie
Posts: 2
Joined: Wed Jul 20, 2005 5:35 pm

Post by zeurois »

thank you very much..and how do you stop a running service or program?
Post Reply