![]() |
calling includes
Sorry if this is the wrong place to post this, or my question isn't too clear - im a bit of a n00b when it comes to PHP - bring on WYSIWIG HTML and i'd be fine...! :p
Basically I'm trying to include a file (gallery latest photos FYI) from my forum home. I've created a template, forumhome_latestphotos and have placed the code for it in forum home. The table section that i've placed in the template so far shows up so I know i haven't messed that bit up :classic: My question: How can i get PHP Code:
TYIA Ollie |
You can just use phpinclude.
|
So if i wanted to make it so that wherever i put $getlphotos, it includes thumbs.php in that area, would i use something like
$getlphotos=<?php include("thumbs.php") ?> or would i need to use eval? if i do - how?!?!?! lol or would i have to use another method? Ollie |
ne1?
TIA Ollie |
PHP Code:
|
Thanks Kriek,
Was almost going to sleep there :P Is that meant to go in PHP Incl.? If i put it in there i get parse errors at top of page... so should it go in index.php? If so, where abouts? Thanks Ollie |
Sorted it!
Used ob Thanks neway! Ollie |
Also make sure you use your parentheses (the brackets) correctly.
E.g. PHP Code:
|
What do you think about this? It must work on Windows as well as on UNIX:
PHP Code:
|
All times are GMT. The time now is 09:14 AM. |
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:
|