note 74897 added to ref.exec

From: Date: Thu, 03 May 2007 00:51:25 +0000
Subject: note 74897 added to ref.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-126130@lists.php.net to get a copy of this message
Scheduling WinXP tasks with schtasks.exe and using PHP to execute the command, may sometime fail to work. This is because, Apache does not have the privilege to access some of the System Files when placing the scheduling. The way I'd do: is by creating a normal user account and assign Apache service to logon as that account. Open the 'services.msc' in the 'Run' window, look for Apache in the listing, right click and get to 'Properties'. Click at the second tab 'Log On' and fill in the 'This account' fields. Of course, Apache needs to be installed as Service during its first setup. Hope this helps anyone. Fendy Ahmad ---- Server IP: 69.39.81.135 Probable Submitter: 60.48.144.226 ---- Manual Page -- http://www.php.net/manual/en/ref.exec.php Edit -- https://master.php.net/note/edit/74897 Del: integrated -- https://master.php.net/note/delete/74897/integrated Del: useless -- https://master.php.net/note/delete/74897/useless Del: bad code -- https://master.php.net/note/delete/74897/bad+code Del: spam -- https://master.php.net/note/delete/74897/spam Del: non-english -- https://master.php.net/note/delete/74897/non-english Del: in docs -- https://master.php.net/note/delete/74897/in+docs Del: other reasons-- https://master.php.net/note/delete/74897 Reject -- https://master.php.net/note/reject/74897 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#126130) next »