![]() |
Include within a Variable?
I'm trying to set a variable that's another file, i'm trying to include it but it just put's the include at the top of the page not were the variable is.
Code:
$v = include('page.php'); Also bearing in mind the variable is in the template! |
The include() function does not return a value, it would be best if you made page.php build up a variable, and then require() the file, after doing that you can then call the variable it has made :)
Quick Example: FILE: page.php PHP Code:
PHP Code:
- Zero Tolerance |
Well as i said the the variable is in the template and i can't seem to enter PHP into it so i need to set the variable value as the other page!
I'm no good with PHP so i hope you can unserstand that. and page.php is not relational to the forum it can't really be edited! |
Your example is this:
PHP Code:
PHP Code:
|
All times are GMT. The time now is 01:38 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|