You are here: Restarting windows from php « PHP « IT news, forums, messages
Restarting windows from php

Posted by Karl-Heinz Christian Zeck on 08/10/05 17:05

Does anyone have any idea how to restart windows from a php script?
I tried the following:
exec('SHUTDOWN -r -t 01');
or
exec('SHUTDOWN /r');

I received the following warning message: Warning: exec(): Unable to
fork [SHUTDOWN -r -t 01].

I never used this kind of functions before. What's wrong? In IIS for
"Execute Permissions" I have "Scripts and Executables". What
permissions should I set for the Internet Guest Account? Or something
else caused the problem, not the permissions? Please help me.:)

Thanks!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация