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

Your name:

Reply:


Posted by Alan Jones on 05/13/07 02:44

On 12 May 2007 19:20:20 -0700, shimmyshack <matt.farey@gmail.com>
wrote:

>> Thank you very much for the help. :) I'll give your recommendation
>> a run thru, 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.
>
>basename($_SERVER['SCRIPT_FILENAME']);
>does exactly that, try it.

It returns the filename of the file it is in. I ran...

echo basename($_SERVER['SCRIPT_FILENAME']);

....from within the 'include' file index_body.php and it returned
that same filename.

I need the code in the include file to somehow determine, or derive,
the name of its 'parent' file in a given instance. This procedure
would be happening within the include file as it resides in the
parent file.

Again, thanks for racking your brain on this with me. I'm at a total
loss... :(

[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

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