You are here: Re: require("common/latest.php") across multiple websites « PHP Programming Language « IT news, forums, messages
Re: require("common/latest.php") across multiple websites

Posted by Chung Leong on 01/26/06 04:09

Jim Carlock wrote:
> Another question...
>
> Using the following code,
>
> <?php require("/common/latest.php"); ?>
>
> Is there a way to detect which page "required" latest.php ?
>
> For instance...
>
> Domain1, homepage (domain1.com/index.php) and
> (domain1.com/talks/php/index.php) both employ ...
> <?php require("/common/latest.php"); ?>
>
> Domain2, provides similar multiple pages accessing the same
> content by requiring...
> <?php require("/common/latest.php"); ?>
>
> Is there a php function that detections the name of the calling
> page? And is there another way to do this? I'm working with
> something along the lines of...
>
> <?php require("/common/latest.php?rp=domain1.com/index.php"); ?>
>
> Any other suggestions or a PHP server variable to detect the
> name of the caller (calling page)?
>
> Thanks.
>
> Jim Carlock
> Post replies to the newsgroup.

Yes. See http://fi.php.net/debug-back-trace/ for details.

 

Navigation:

[Reply to this 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

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