Page 1 of 1
page within a page
Posted: Mon May 16, 2005 10:10 am
by jaymoore_299
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?
Posted: Mon May 16, 2005 12:52 pm
by John Cartwright
Posted: Mon May 16, 2005 4:32 pm
by Deemo
or
require() if you want PHP to return an error if it cant find it
Posted: Tue May 17, 2005 12:09 am
by Burrito
on a different note...but same topic, what is the diff betwen include_once and include, and require_once and require?
Posted: Tue May 17, 2005 12:27 am
by SBro
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.
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');
include_once and require_once are slightly slower then their counterparts, because they search to see if the file has already been included.
Re: page within a page
Posted: Tue May 17, 2005 12:40 am
by harrisonad
jaymoore_299 wrote:... I've seen this done with perl, ...
Can you post samlpe url?