You are here: Re: newbie: setting the page title « PHP Programming Language « IT news, forums, messages
Re: newbie: setting the page title

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)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация