Jump to content

bugscripts

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

bugscripts's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. That doesn't work, and the other methods of printing the URL that I know of do the same thing. I tested it with a regular include(), and it works as expected.
  2. That's not exactly what I meant. I want it to determine the name of the page mod_layout is including it into, but instead it is giving me the name of the script that is supposed to determine it. Sorry if I am not making any sense  :)
  3. [I am asking this for someone else] Say I want some PHP code executed on all pages in a certain directory. If I add a PHP include() to the top of all pages with mod_layout, and have this in the included file test.php: [code]<?php echo $_SERVER['PHP_SELF']; ?>[/code] On the page test.html (and all other pages, just an example) I get this printed: [quote]/test.php[/quote] I want this printed: [quote]/test.html[/quote] Thanks for any help! :)
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.