Re: [PHP] un include?

2007-02-11 Thread Larry Garfield
Copying back to the list where it belongs... On Sunday 11 February 2007 11:01 am, jekillen wrote: On Feb 10, 2007, at 8:58 PM, Larry Garfield wrote: You need to rearchitect your system. When you include a file, its code executes. Once it has been executed, it is done. It will never

Re: [PHP] un include?

2007-02-11 Thread jekillen
On Feb 11, 2007, at 1:16 PM, Larry Garfield wrote: You're using str_replace() on PHP code to control configuration variables? There's a half dozen better ways that are less error prone and faster and more secure. My recommendation: - If the config is all simple values, use an ini file.

[PHP] un include?

2007-02-10 Thread jekillen
Hello all; Is there a way to un include a file once it has been included in a script? I have a situation where I need to include a php file for a variable and its value. Then I need to open the file and modify it in the same function 'that included the file. So far the function, as I test it

Re: [PHP] un include?

2007-02-10 Thread Casey Chu
Maybe you could make a separate PHP file, include it there, then pass the results to the main file? On 2/10/07, jekillen [EMAIL PROTECTED] wrote: Hello all; Is there a way to un include a file once it has been included in a script? I have a situation where I need to include a php file for a

Re: [PHP] un include?

2007-02-10 Thread Larry Garfield
You need to rearchitect your system. When you include a file, its code executes. Once it has been executed, it is done. It will never rewind itself. You can open and edit the file, but the code has already executed and that execution has happened, and you cannot change that. What exactly