For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > July 2006 > Is it possible to tell the name of the document which is including (ssi) a php docume









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Is it possible to tell the name of the document which is including (ssi) a php docume
Marnok.com

2006-07-18, 6:57 pm

Is it possible for a .php file to get the name of the document which is
including it?

Example; I have documents foo.html, bar.html which are each including
myimage.php

myimage.php wants to display an image but a different one depending on
whether it is in foo.html or bar.html

can php get the document name?

thanks for any help


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com