Posted by Dave on 05/26/05 13:08
(Papa.Legba.666@gmail.com) decided we needed to hear...
> Stupid newbie question:
>
> I want all of my web pages to look like this
>
> <?php $title = 'My site';
> include('http://mySite.com/layout/page_begin.php'); ?>
> ... HTML of page body goes here
> <?php include('http://mySite.com/layout/page_end.php'); ?>
Your problem is with the include lines. Whilst you *could*
include from a URL (if allow_url_fopen is turned on), it
probably does not do exactly what you expect.
Instead, use a local file path to your include files, such
as include('layout/page_begin.php'); if page_begin.php is
in the layout subdir of the current script's dir.
>
<snip>
--
Dave <dave@REMOVEbundook.com>
(Remove REMOVE for email address)
[Back to original message]
|