I want to have it so that when a surfer clicks a link, he is sent to a page where the page requested is found below, and at the top there would be some space where I can put more relevant links, banners, etc. I've seen this done with perl, I was wondering if the same can be done with php.
I don't want to use frames, I'd prefer just a clean divide with no option for the surfer to adjust the frame. Any ideas on how to do this?
page within a page
Moderator: General Moderators
-
jaymoore_299
- Forum Contributor
- Posts: 128
- Joined: Wed May 11, 2005 6:40 pm
- Contact:
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
include() can include the same file more then once, while if include_once() is used it will not include the file again if it's already been included somewhere else in the page. Same thing goes for require and require_once() ie.
include_once and require_once are slightly slower then their counterparts, because they search to see if the file has already been included.
Code: Select all
// content of header.php will be included twice
include('header.php');
include('header.php');
/* use of include_once() */
// content of header.php will be included only once
include_once('header.php');
include_once('header.php');- harrisonad
- Forum Contributor
- Posts: 288
- Joined: Fri Oct 15, 2004 4:58 am
- Location: Philippines
- Contact:
Re: page within a page
Can you post samlpe url?jaymoore_299 wrote:... I've seen this done with perl, ...