![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Jul 2005
Posts: 73
Rep Power: 4
![]() |
execute an exe on the server
hello, I will be running on a windows server, and I was wondering if there was a command i could use to execute an exe file on the server.
|
|
|
|
|
|
#2 |
|
Newbie
Join Date: Oct 2006
Posts: 16
Rep Power: 0
![]() |
Hi,
Check out these functions: http://us2.php.net/manual/en/ref.exec.php Be careful though, since running untrusted code at the command line opens up a whole can of security risks. |
|
|
|
|
|
#3 | |
|
Programmer
Join Date: Jul 2005
Posts: 73
Rep Power: 4
![]() |
Quote:
![]() thanks! |
|
|
|
|
|
|
#4 |
|
Programmer
Join Date: Jul 2005
Posts: 73
Rep Power: 4
![]() |
so, on the exec fund, where exactly does the output come from? the console of the ran program?
|
|
|
|
|
|
#5 |
|
Programmer
Join Date: Jul 2005
Posts: 73
Rep Power: 4
![]() |
sorry, I meant exe fun, not fund...
and why does no one want to answer me? |
|
|
|
|
|
#6 |
|
Programmer
|
exec() returns whatever the program prints on stdout. So if your program is:
#include <stdio.h>
int main(int argc, char **argv)
{
fputs("Hello, world!\n", stdout);
} |
|
|
|
|
|
#7 |
|
Programmer
Join Date: Jul 2005
Posts: 73
Rep Power: 4
![]() |
thanks
and above, I meant exec func, not fund or fun, i meant FUNC...lol |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Socket Server | hbe02 | C++ | 19 | May 23rd, 2006 10:14 PM |
| FTP Server in Python | Sane | Python | 1 | Mar 31st, 2006 10:25 PM |
| send() problem w/ http server | kch_86 | C | 2 | Nov 25th, 2005 12:53 AM |
| Instant Messaging App Help | AusTex | C | 0 | Apr 27th, 2005 4:52 PM |