You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 57 guest(s) and 6 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - PHP--Can it execute window programs? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
ruthlezz1
Guest






PostPosted: Wed Jan 22, 2003 11:18 am Reply with quoteBack to top

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.
Find all posts by Anonymous
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Wed Jan 22, 2003 11:28 am Reply with quoteBack to top

Yes there is such an option:

http://www.php.net/manual/en/ref.exec.php

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
ruthlezz1
Guest






PostPosted: Wed Jan 22, 2003 11:34 am Reply with quoteBack to top

Thanks bro...I have been looking for this for a week now. Man if you ever need anything e-mail me @ ruthlezz1@msn.com
Find all posts by Anonymous
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Wed Jan 22, 2003 11:36 am Reply with quoteBack to top

Donations? Wink

Good luck.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
ruthlezz1
Guest






PostPosted: Wed Jan 22, 2003 5:48 pm Reply with quoteBack to top

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?
Find all posts by Anonymous
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Wed Jan 22, 2003 5:54 pm Reply with quoteBack to top

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]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
ruthlezz1
Guest






PostPosted: Thu Jan 23, 2003 9:30 am Reply with quoteBack to top

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.
Find all posts by Anonymous
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Thu Jan 23, 2003 9:39 am Reply with quoteBack to top

Great detective work!

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
ruthlezz1
Guest






PostPosted: Thu Jan 23, 2003 11:26 am Reply with quoteBack to top

Thanks bro.....I made a donation of $20 (All I can afford right now) to help out your site.
Find all posts by Anonymous
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Thu Jan 23, 2003 3:20 pm Reply with quoteBack to top

Thanks very much, I'll let you know when I check it tonight.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Thu Jan 23, 2003 9:35 pm Reply with quoteBack to top

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]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
ruthlezz1
Guest






PostPosted: Fri Jan 24, 2003 9:32 am Reply with quoteBack to top

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
Find all posts by Anonymous
Display posts from previous:      
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.413 Seconds - 329 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::