One could, though it would add overhead to every request. As such, performing scheduled tasks like this should be avoided whenever a cron (or similar) service is available.
The OP should be aware that there are several PHP executables available, depending on the version of PHP installed.
In PHP 4, there is a php.exe executable in the cli subdirectory (CLI is an acronym for Command Line Interface). The php.exe executable in the root installation directory is the CGI (Common Gateway Interface) version, which intended for use with a server.
In PHP 5, the situation changes. The CGI version has been renamed php-cgi.exe, and the CLI version can now be found in the root installation directory. There's also a new php-win.exe executable which doesn't cause the console window to open.
The install.txt file contains a description of this in the Manual Installation Steps section, and the
PHP manual contains information about
running PHP from the command line.
Mike
Bookmarks