Re: createing a php script with reloadable modules.

From: Date: Tue, 23 Jan 2001 11:07:40 +0000
Subject: Re: createing a php script with reloadable modules.
References: 1 2 3 4  Groups: php.windows 
Request: Send a blank email to php-windows+get-5152@lists.php.net to get a copy of this message
yes but. when does it cashe the file. at the beginning right when the script first starts running. isn't there a way to make it hmm refresh the cashed file reload its self to pick up the changes? what if I add a new module while it is running. how do I get it to pick up this new module. what if I make a change in the module how do I get it to pick up the change in the module with out shutting down the core script. shutting down the core script is the last thing I want to do it has to remain running. currently I am looking at running each module as a separate script the core script kicks off each of the modules one at a time. but this just seams to be the wrong way to go about it. but at least that way any changes in the modules would be picked up next time they where run by the core script. btw thanks for all your feelings. having someone to hash this out with is helping. kill-9 ----- Original Message ----- From: "phobo" <antiphobo@paradise.net.nz> To: "Php-Windows@Lists.Php.Net" <php-windows@lists.php.net> Sent: Tuesday, January 23, 2001 10:01 AM Subject: Re: [PHP-WIN] createing a php script with reloadable modules. > I can't see why PHP would crash? When it runs a PHP file, it would open the > entire file and cache the whole thing surely ? In the .05ms that it takes to > overwrite a file, it would be apache not PHP i would say, that would cause > problems ... ? > > Siggy > > ----- Original Message ----- > From: "kill-9" <kill-9@kill-9.dk> > To: "phobo" <antiphobo@paradise.net.nz>; "Php-Windows@Lists.Php.Net" > <php-windows@lists.php.net> > Sent: Tuesday, January 23, 2001 8:11 PM > Subject: Re: [PHP-WIN] createing a php script with reloadable modules. > > > > Ok feelings are also welcome :) > > > > yes the script will be running 24 hours a day 7 days a week. I need the > > script to pick up the changes I make. I assumed that php would cashe the > > script it was curtly running and there for not pick up any changes I made > > while I was running it. which is what I need it to do. > > > > kill-9 > > ----- Original Message ----- > > From: "phobo" <antiphobo@paradise.net.nz> > > To: "kill-9" <kill-9@kill-9.dk>; "Php-Windows@Lists.Php.Net" > > <php-windows@lists.php.net> > > Sent: Monday, January 22, 2001 6:24 PM > > Subject: Re: [PHP-WIN] createing a php script with reloadable modules. > > > > > > > My feeling ... > > > > > > Your script wont be running for 24hours, so you can just edit the PHP > file > > > directly, can't you? Make a copy of your main PHP file, make the changes > > you > > > need, and copy/overwrite the existing one. I assume the PHP engine > doesn't > > > read the file a line at a time but instead caches the whole script, so > you > > > wont have any problems of the php script failing because it was changes > > > 'half way through' > > > > > > Siggy > > > > > > ----- Original Message ----- > > > From: "kill-9" <kill-9@kill-9.dk> > > > To: "Php-Windows@Lists.Php.Net" <php-windows@lists.php.net> > > > Sent: Monday, January 22, 2001 9:26 PM > > > Subject: [PHP-WIN] createing a php script with reloadable modules. > > > > > > > > > Ok guys I need your help I'm banging my head against the wall on this > one. > > > > > > I need to do something like modules in a script. The main script runs > 24/7 > > I > > > want to be able to change the modules run time. have some kind of flag > > set > > > to have it update/reload the module. I cant do something like an > include > > > with the modules because they wont be refreshed that and you cant > > > re-included a function that has already been include once and > include_once > > > wont work either because that wont refresh the module. > > > > > > here are my thoughts. > > > > > > if I use system or pass thru to set off the modules. but the question > is > > I > > > need to pass the module a file pointer. and so far I have been unable > to > > > pass a file pointer to another script. > > > > > > another option would be to use fopen to buffer the module and using exec > > to > > > execute this new module. I could reload the module by re reading the > > file. > > > would this work? > > > > > > all comments ,opinions , ideas , and wild guesses are welcome. I'm > stuck > > > and need some new ideas on how to do this. > > > > > > > > > thanks > > > > > > kill-9 > > > www.kill-9.dk > > > > > > > > > > > > > > > > > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.windows (#5152) next »