|
#1
|
|||
|
|||
|
php includes
I've converted my template files to .php (and referenced them correctly in index.php) and I want to include test.php in image view..
ie: Code:
<?php include('test.php'); ?>
|
|
#2
|
|||
|
|||
|
Sorry,
I can't see any sense in this.. Why do you want to do this? what are the advantages? I never saw that an includefile includes a second-level... I don't think that this is even possible :?: |
|
#3
|
|||
|
|||
|
well currently I am running a community forum on medio-core.com. I am going to be changing the main page to my photoblog ( it's currently unfinished at http://medio-core.com/pblog ) .. I want to use includes to call a php file with information such as latest posts and members etc on my photoblog in a sidebar, so it can be seen when the index page is accessed.
|
|
#4
|
|||
|
|||
|
well, please look at this from the PHP-reference:
Quote:
Code:
<? ?> |
|
#5
|
|||
|
|||
|
yup, the file being included contains <? and ?> .. it doesn't work.
|
|
#6
|
|||
|
|||
|
well, I think your deal is too complicated than to find a quick solution whithout knowing the source code
to really find the way how to do this we should look into the source code of the whole thing, and I must admit, I have no time for that :? |
|
#7
|
|||
|
|||
|
okay, thanks for your help..
hopefully there will be a way to do this in a future version. |
|
#8
|
|||
|
|||
|
PHP Includes
I was looking to do the same thing to show ad banners.
I had the same problem. You can get around it by creating a wrapper. For example, create a file called test.php that contains: <?php include'yourpixelpostindex.php'; ?> <?php include'yourotherfile.php'; ?> Simple as that. CSS positioned DIVs can be used to place content wherever you want without messing with the templates. |
|
#9
|
|||
|
|||
|
this looks interesting...
please keep in mind, that if you include some files in different levels, it could happen that some includes are required too often and problems will occur (same can happen to "require.") so I would suggest to use "include_once"... but anyway this question is interesting enough to keep it in mind for the modification forum, so I will move it there :wink: |
|
#10
|
|||
|
|||
|
Quote:
Quote:
Pixelpost can successfully be run this way with no other modifications. I created my own index.php which consisted of divs and includes and had it call pixelpost via an include. Looks like it works fine. You can see it in action on www.chefryanmartin.com |
| Post Reply |
| Thread Tools | |
|
|