| Author |
Message |
ruthlezz1
Guest

|
Posted:
Wed Jan 22, 2003 11:18 am |
  |
If I use VB script I can execute windows files on the client PC...this is all fine and good execpt the file I want to execute is located on my web server. What i need to know is this: Does PHP have a command to execute a file on my web server, or a way to close down a program that is running? This file is a bat file I have created to reboot my server.
Please help because the only way I can do this with VB script is to be running the latest version of WSH and the client PCs will have to have the VB script on their local PC and this is not an option I can live with. |
|
|
 |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Wed Jan 22, 2003 11:28 am |
  |
|
     |
 |
ruthlezz1
Guest

|
Posted:
Wed Jan 22, 2003 11:34 am |
  |
Thanks bro...I have been looking for this for a week now. Man if you ever need anything e-mail me @ ruthlezz1@msn.com |
|
|
 |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Wed Jan 22, 2003 11:36 am |
  |
Donations?
Good luck. |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
ruthlezz1
Guest

|
Posted:
Wed Jan 22, 2003 5:48 pm |
  |
Hey I got the script to work on my server at work but the code wont work on php 6.0 is there another command for this? |
|
|
 |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Wed Jan 22, 2003 5:54 pm |
  |
You mean phpnuke 6? You'll have to use the exec statement to run a program off your system like a batch file. That's PHP's function to execute a program.
If its not working on your home system, the program you may be trying to execute may not have rights via your web server. |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
ruthlezz1
Guest

|
Posted:
Thu Jan 23, 2003 9:30 am |
  |
I fig it out....I was exec a program at work that had a console where at home it was a batch file. To work around I used the shell_exec("start c:\reboot"); to get it to run in a command prompt. |
|
|
 |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Thu Jan 23, 2003 9:39 am |
  |
Great detective work! |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
ruthlezz1
Guest

|
Posted:
Thu Jan 23, 2003 11:26 am |
  |
Thanks bro.....I made a donation of $20 (All I can afford right now) to help out your site. |
|
|
 |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Thu Jan 23, 2003 3:20 pm |
  |
Thanks very much, I'll let you know when I check it tonight. |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Thu Jan 23, 2003 9:35 pm |
  |
Yeap sure enough I got it, thank you! Anything right now is helping to maintain the site. |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
ruthlezz1
Guest

|
Posted:
Fri Jan 24, 2003 9:32 am |
  |
I run a site and I pay close to a 100 dollars a months to host downloads.....I think I should put up a donations button like you. Thanks for all the help |
|
|
 |
 |
|
|