Is it possible to launch a php script at apache startup

Posted by Mademoiselle Vagin Cul on Stack Overflow See other posts from Stack Overflow or by Mademoiselle Vagin Cul
Published on 2010-06-07T20:32:53Z Indexed on 2010/06/08 12:32 UTC
Read the original article Hit count: 156

Filed under:
|
|

Hi,

As the title says, I want to know if it is be possible to automatically launch a PHP script when a restart of apache is done.

thanks

MORE INFO EDIT:

I will try to explain what is the purpose of this, the best I can. We are currently refactoring our application and we'll be stuck with 2 differents configuration file system for the time being, until all of the application flows are refactored (might take more than a year). The old one is using simple flat file in the key=value format (i.e. www.conf), while the new system will use cacheable php files (i.e. www.php). We need to replicate to www.php any config changes made in www.config.

Since Apache gets restarted whenever there is a config change in www.conf, I thought it might be a good workaround solution to launch a PHP script, that would replicate the www.conf to www.php.

© Stack Overflow or respective owner

Related posts about php

Related posts about apache