This is probably a stupid question, but I have to ask it. I have a forum that I'd like to display headlines from our site which are contained in a .php include file. How do I display this file at the top of the header?
Ian
Displaying a PHP Include File
mhmm, try include ("http://example.com/header.php"); but i'm not sure that will realy work
Or other variant- use iframe
Or other variant- use iframe

Well, displaying data in a php file is pure php basics. It depends on how the data is stored.
For example, let's say we have 2 files, data.php and show.php:
data.php:
show.php:
For example, let's say we have 2 files, data.php and show.php:
data.php:
Code: Select all
<?php
$header = "Welcome to my page";
?>
Code: Select all
<?php
include 'data.php';
echo $header;
?>
One more sollution- edit template files, but be careful, do backups and do not delete any in this, only add your own source
In template file add iframe or smth and add script in html language, because mostly templates are created in html
I think this topic should be locked, because all kind of sollution is mentioned here
-=LOCKED=-
In template file add iframe or smth and add script in html language, because mostly templates are created in html
I think this topic should be locked, because all kind of sollution is mentioned here
-=LOCKED=-
