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

Posted by Tyler Kiley on 08/11/05 00:30

> 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.:)

On windows, php uses cmd.exe to do exec() stuff.

IIRC< if your web server/php script is running as an underprivileged
user (which it should be), it probably don't have read/exec access to
cmd.exe. This is one possible cause of the fork error you mentioned.
You can solve this by giving your php script access to cmd.exe, or
copying cmd.exe into the directory that contains your php dll or exe.

(you may have already done this, or this may be different in newer
versions of windows -- I haven't had this issue in a while)

Tyler

 

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

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