473,387 Members | 3,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Web based system management software

2
Is there a simple web based intelligent system like alarm or automatically shutting down pc within certain time? I am looking for an application that is PHP.
Mar 13 '10 #1
5 1790
Atli
5,058 Expert 4TB
Hey.

Shutting down a computer via a web-based system (by which I mean; a browser based website) is not possible. At least not by using the website alone. You would need a 3rd party client-side language, like Java, to accomplish that.

Not sure what you mean by "alarm", but if you just mean a clock that beeps, or something like that, that shouldn't be a problem. Although, using PHP would be less than ideal. JavaScript would be a better language to use for such a thing.
Mar 14 '10 #2
Well you can always tell the computer to shutdown but you can not tell PHP to shutdown the computer but you can execute system commands so...
Windows
Expand|Select|Wrap|Line Numbers
  1. exec( "shutdown -s" );
  2.  
Linux
Expand|Select|Wrap|Line Numbers
  1. exec( "sudo shutdown -h 5" );
  2.  
Mar 15 '10 #3
Markus
6,050 Expert 4TB
Of course that will shutdown the box that PHP is running on. Unless this application is running on the client box, then I doubt this is the way to go (shutting down a web-server could be a problem :P)
Mar 15 '10 #4
Well I don't see Windows or Linux being all "Okay stranger you can shut me down" lol. And yes that would be a pretty big problem but I figured he was using it on his development machine. If your trying to shutdown a different computer remote management is the only real option I can think of. If your on Windows you can always find the correct COM object for doing just that Linux well I'm sure there's some open source software that you can have PHP use.

EDIT:

If you are using a server and want to shutdown your client ( which you have complete access to ) use a socket server to have PHP send a message to at the correct time and then take your actions from there. Sockets in C are pretty easy to understand on Linux I've never written anything with sockets on Windows I'm sure its about the same but Windows uses there own sockets interface rather then the Unix socket "standard".
Mar 15 '10 #5
syadz
2
thank you so much guys for your explanation.really appreciate that!
Mar 16 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Spammay Blockay | last post by:
Does anybody know of a solid Java-based email list management product? - Tim --
10
by: Hung Jung Lu | last post by:
Hi, Does anyone know whether there is any generic GUI-based build system around? (Python-based would be great. Also, for now I am only looking for Windows OS.) By "build system" I mean something...
0
by: Dana Morris | last post by:
Call for Participation OMG's First Annual Software-Based Communications (SBC) Workshop: From Mobile to Agile Communications http://www.omg.org/news/meetings/SBC2004/call.htm September 13-16,...
3
by: Artificer | last post by:
I want to develop a school management system for 20 users and I am trying to decide if asp.net 2.0 is a proper environment for it or if I will have serious interface limitations? Any school...
3
by: KAMAL | last post by:
hi all, I want to access remote system files and i want to modify them from my system using asp.net(C#.net VS2003). If a request is sent to the site i designed , on client system (where the...
4
by: Paciente8159 AKA Klayman | last post by:
Hi, I have a couple of doubts reggarding a plugin based application in C++? I want to build a c++ plugin based app. I have searched alot of things in the net but I still don't know how to...
0
by: jconxus | last post by:
Mylinia.com Live purposefully! Who: Mylinia.com is a personal development company located in the heart of the Silicon Valley, started in 2006 by 3 Stanford business school students who are...
8
by: BVS | last post by:
I am moving from c++ to c# and I have been converting code to c# I have not been able to convert the following code: SYSTEM_INFO siSysInfo; GetSystemInfo(&siSysInfo); SystemID =...
4
by: DanielGifford | last post by:
Hi I'm making some basic cryptography software and I've run into a snag. I'm trying to retrieve some sort of system number thats specific to the system I'm working on. It can't change over...
1
by: whiteshadow | last post by:
Dear Bytes i am currently developing a Management system for a university which can be used on mobile. Currently the company already have a Management system but it is desktop based. I am just...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.