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" <[EMAIL PROTECTED]>
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]