Using $vars from include()d functions in the main programm and other functions
| From: | ben9000 | Date: | Sat, 11 Jan 2003 11:49:15 +0000 |
| Subject: | Using $vars from include()d functions in the main programm and other functions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-131237@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello List,
a simple problem turned out to be not so simple as I thought.
Here the situation:
main.php4
|
+-include() mainhtml.php4
|
+-include() functions.php4
|
+a function does include() languagevars.php4
I can see the included $vars from languagevars.php4 in functions.php4
but not in main.php4.
Using "global $var" just seems to work top->down but I'm not able to
bring the $vars up to the main.php4 or to the mainhtml.php4.
This time, I just wanted to write not one scary large PHP4-Page with
around ~100kb in size. But I'm really stuck - all the books, pdfs and
web information just want to bring the $vars down.
Or is there just a failure in thinking?!
Any hint is highly appreciated.
Ben :)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+IATAROwluvOuI4ARApiOAJ9EyDo2ER3YROGZ120CgllOkjM8tgCfUIeD
pxtKmzi71xC3n8Tpb0FSQ7w=
=BZcc
-----END PGP SIGNATURE-----