|
Posted by ZeldorBlat on 05/13/07 02:51
On May 12, 7:35 pm, Alan Jones <a...@jalanjones.com> wrote:
> On 11 May 2007 17:46:48 -0700, ZeldorBlat <zeldorb...@gmail.com>
> wrote:
>
>
>
> >> My proposed solution is probably overkill. My original problem is
> >> positioning of the content. All of the content in the first include
> >> is within a table.
>
> >> In the parent page, I could create the table structure of the first
> >> include, break the first include into parts, and populate the cells
> >> individually with the pieces and parts of the first and second
> >> include. My problem with that is I want to retain the ability to
> >> work with, edit, the first include as a single page.
>
> >> In the parent page, maybe there is a way to specify the position/
> >> location of one include inside another?
>
> >What I would do in that case is define a variable or constant in your
> >top (index) page before including common.php, then check for it before
> >including signature.php. That way you aren't limited to only showing
> >it on index.php, but can instead pick and choose which pages to
> >include it on.
>
> >So, in your index.php (or any other page on which you want to show
> >the "signature") you would do something like this:
>
> >define('SHOW_SIGNATURE', true);
> >include('common.php');
>
> First of all, thank you very much for clueing me in on this area of
> programming. Without your help, I would still be very lost, but is
> there a way to make basename, or a similar function, simply return
> the filename of the parent page; the page the include is in? Thanks
> again, I really appreciate any help I can get.
Yes -- look at the following URL:
<http://www.php.net/manual/en/
reserved.variables.php#reserved.variables.server>
and try the various variables available to see what they return.
Navigation:
[Reply to this message]
|