In article <961qbm$hbj$[EMAIL PROTECTED]>, [EMAIL PROTECTED]
("Kato Strandjord") wrote:
> HI is it possible to do what i have shown with the 3 php files under? I want
> that a variable stored in a another php file like this, and then i want to
> get the stored variable from a 3rd php file. How can i do this, i have
> tried it but it does not work. When i get the variable in the 3rd php file
> it is empty. It seems like i cant store variable outside the function, and
> then use it in other functions in the same php file. Is that true! In JAVA
> and C++ this was a piece of cake...
You'll want to read the section of the manual dealing with variable scope,
especially as it relates to functions. The section on passing by reference
may also be of interest at this point...
<http://php.net/manual/en/language.variables.scope.php>
<http://php.net/manual/en/language.references.php>
--
CC
--
PHP General 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]