> > include ("http://www.site.com/home.php";);
> > }
> > else{
> > include ("http://www.site.com/"; . "$page" . ".php");
> > }
> > ?>
> > This code is in the index.php file.  When home.php is included, I
> > want to echo a variable like $title on the index.php page. But
> > $title is defined on home.php. For some reason, I can't get $title
> >to echo on index.php after it's included.  Anyone know??

Yeah, it's because you're including the output of those files (the HTML or
whatever) rather than the files themselves. Just include them using their
filesystem path:

include ('path/to/home.php');

Chris

=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to