LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-11-2007, 01:29 PM   #1
amena
LQ Newbie
 
Registered: Apr 2007
Posts: 3

Rep: Reputation: 0
server shutdown


can you help me with the instruction that shutdown the server using php???
 
Old 04-12-2007, 10:30 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 252Reputation: 252Reputation: 252
You could just use an exec command to use the actual command. Just make sure whatever user is running php or on the web has access to shutdown. In my opinion, writing a script to shutdown a machine thru php or a web interface is a bad idea.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to shutdown x server? hoserdude Linux - Newbie 22 04-25-2015 01:21 PM
shutdown X server jborn Linux - Newbie 3 10-28-2006 07:32 PM
how to shutdown x server mohamed_123 Linux - General 6 04-12-2006 11:59 PM
My Server won't off when i shutdown kamtono Mandriva 1 09-30-2003 10:46 AM
how can I remote shutdown other WinNT server from Linux Server? adelel Linux - Networking 2 01-06-2002 01:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration