If you just need the filename of the include file you can set it in code by
assigning it to a variable at design time.  Something like $ThisPage =
"include.php".  You could also do this for the entire path, but it would
need to be changed whenever you put the script in a different place.


Gerry Figueroa Anadon <[EMAIL PROTECTED]> wrote in message
> Any Ideas as to how I could be able to acomplish this?
> or
> How could I get the path of the main page and pass it on to the included
file for processing?.
> thanks!
> Fred wrote:
> > $PHP_SELF will always give the name and path of the main file, even if
> > variable is set in an included file.  The reason is that the included
> > is included before the variable is evaluated.
> >
> > Fred
> --
> Gerry Figueroa
> Dynamic Intermedia

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to