Inside "File.inc" you need to have a print $title statement somewhere.
Then your script should be
$title = "Some Text";
include "File.inc";
BTW - unless your server is set up to show .inc as php or html pages, there is a security hole. I could, theoretically, navigate to "yoursite/yourfolder/file.inc" and view the source of the page and see your scripts.
Good luck.
Elian Kool wrote:
Hi all!
I want to use variables that are declarated after the usage...
My Problem:
include("file.inc");
$title = "Hello World";
The variable $title should be displayed in the include file...
ist this possible?
thx, elian