Reply to Re: [PHP] Re: Windows CLI and task scheduler

Your name:

Reply:


Posted by Jason Barnett on 01/20/05 01:12

Richard Lynch wrote:
> Dominic Schanen wrote:
>
>>I changed the scheduled task to use php.exe instead of php-win.exe and
>>that cleared up the errors with unloading the profile that were
>>appearing in the application log. Could this possibly be a bug with
>>php-win.exe and not cleaning up properly?
>
>
> I think it's just the way it is, not a bug.
>
> Windows can't close that window, so it complains.

That makes some sense.

>
> You could try searching/adding it to http://bugs.php.net though, if you
> think it really is a bug.
>

It will likely end up being labeled bogus (just my opinion of course).
From what you say of php-win.exe it sounds like it's just a call to the
comspec and then invoking php. If that's all that php-win does then
it's seriously not needed; you can just add a file association for .php
files that will run:

C:\WINNT\SYSTEM32\CMD.EXE /K "C:\PHP\php.exe -f %1"
^^^^ path/to/comspec ^^^^ /K "/path/to/php.exe -f %1"

Right click, run php script in an MS-DOS box. Presto! Simple as that.

--
Teach a man to fish...

NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://www.php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins

[Back to original 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

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