different PHP_SELF behaviors

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • yawnmoth

    different PHP_SELF behaviors

    Say I had the following script:

    <?
    echo $_SERVER['PHP_SELF'];
    ?>

    Lets call this script test.php. On some severs, accessing
    /test.php/foobar will yield in /test.php/foobar being displayed while
    on others, it'll result in /test.php being displayed. I can't seem to
    find anything that all the servers that do display it or all the
    servers that don't display it have in common. Any ideas? Is it some
    PHP directive or some Apache module or something?

  • Csaba Gabor

    #2
    Re: different PHP_SELF behaviors

    yawnmoth wrote:
    Say I had the following script:
    >
    <?
    echo $_SERVER['PHP_SELF'];
    ?>
    >
    Lets call this script test.php. On some severs, accessing
    /test.php/foobar will yield in /test.php/foobar being displayed while
    on others, it'll result in /test.php being displayed. I can't seem to
    find anything that all the servers that do display it or all the
    servers that don't display it have in common. Any ideas? Is it some
    PHP directive or some Apache module or something?
    PATH_INFO
    See, especially the Jul 3 post of:


    Csaba Gabor from Vienna

    Comment

    • Chuck Anderson

      #3
      Re: different PHP_SELF behaviors

      Csaba Gabor wrote:
      yawnmoth wrote:
      >
      >Say I had the following script:
      >>
      ><?
      >echo $_SERVER['PHP_SELF'];
      >?>
      >>
      >Lets call this script test.php. On some severs, accessing
      >/test.php/foobar will yield in /test.php/foobar being displayed while
      >on others, it'll result in /test.php being displayed. I can't seem to
      >find anything that all the servers that do display it or all the
      >servers that don't display it have in common. Any ideas? Is it some
      >PHP directive or some Apache module or something?
      >>
      >
      PATH_INFO
      See, especially the Jul 3 post of:

      >
      Csaba Gabor from Vienna
      >
      >
      [Is this synchronicity?]

      I agree. That sure sounds like the difference between the
      cgi.fix_pathinf o settings in php.ini (used when Php runs as a a CGI
      binary). I dredged this up while researching a problem with the contents
      of the path_info server var only yesterday.



      --
      *************** **************
      Chuck Anderson • Boulder, CO

      Everyone's journey should be different,
      so that we all are enriched
      in new and endless ways
      *************** **************

      Comment

      Working...