Reply to Re: 'nested conditional' that can identify parent page?

Your name:

Reply:


Posted by Alan Jones on 05/12/07 23:35

On 11 May 2007 17:46:48 -0700, ZeldorBlat <zeldorblat@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.

[Back to original 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

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