|
Posted by Alan Jones on 05/11/07 23:54
On 11 May 2007 15:59:55 -0700, fel <felipevaldez@gmail.com> wrote:
>On 11 mayo, 17:42, Alan Jones <a...@jalanjones.com> wrote:
>> Hello everyone, any help would be greatly appreciated. :)
>>
>> What I'm trying to do may not be advisable, but here goes...
>>
>> I want a page named signature.php to appear conditionally as
>> an include within another include so that it will, for example,
>> appear in index.php but not in other result pages that use the
>> same top level include.
>>
>> The method would need to determine what page it is inside of
>> during each given instance. I guess something like...
>>
>> if page is index.php then include file else do nothing
>>
>> A 'nested conditional' seems obvious but I don't know how to
>> create an argument that checks the result page file name or
>> otherwise id's that parent page.
>>
>> Obviously, I'm new to PHP and my understanding of basic
>> programming is very limited. I'm also new to the group. I hope
>> to learn quickly, and I look forward to helping others in the
>> future.
>
>
>use debug_backtrace() ?
Thank you for the quick response. I'll check that out and report
back any success.
I was thinking something so simple as declaring a string in the
parent page and getting a conditional statement within the first
include to see it, act on it's presence; decide whether to process
the second include. Shirley this can be done :D
Navigation:
[Reply to this message]
|