Re: PHP initialization script

From: Date: Mon, 08 Jan 2001 20:28:09 +0000
Subject: Re: PHP initialization script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-33304@lists.php.net to get a copy of this message
Edit the file which you use to (re)start Apache.. Probably httpd or apachectl... In this file after the line which apache is (re)started add: lynx -dump "http://localhost/path/to/myphpinit.php" >/dev/null Probably the easiest solution... You can also use wget.. Remove the >/dev/null if you want to see the output of this script on your screen... If you have an CGI version of PHP you cam run it directly... Success.. > No, I can't think of a way of doing that other than modifying your Apache > startup script and having it hit a specific url on your site once. > > -Rasmus > > On Mon, 8 Jan 2001 matt.wong@tumbleweed.com wrote: > > > Hello, > > > > Does anyone know if there is any way to run a PHP script (such as > > myphpinit.php) once when the Apache server is started up (with PHP > > installed as an Apache module)? > > > > Thanks > > -Matt > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#33304) next »