reading variables in other script files
| From: | Kalle Saarinen | Date: | Fri, 01 Aug 2003 09:41:53 +0000 |
| Subject: | reading variables in other script files | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-157914@lists.php.net to get a copy of this message | ||
Hello
I was just wondering how can I get value of a variable in php code located
in a different file?
ie.
I have file1.php wich stores $var1
how can I read the value of $var1 in file2.php
I have database and I can put it in there (I quess) but is that the only
way?
-Kalle