PHP on Windows missing features

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • charles_weaver@post.harvard.edu

    PHP on Windows missing features

    I have a PHP program on a Windows Server website and the following do
    not work:

    $HTTP_SERVER_VA RS["PHP_SELF"], $_SERVER, $_SESSION

    etc. etc.

    Can someone explain me why?

    Is there something I can tell my web host to set in the php.ini file to
    fix this?

    All of this has always worked for me on Unix.

  • Jerry Stuckle

    #2
    Re: PHP on Windows missing features

    charles_weaver@ post.harvard.ed u wrote:[color=blue]
    > I have a PHP program on a Windows Server website and the following do
    > not work:
    >
    > $HTTP_SERVER_VA RS["PHP_SELF"], $_SERVER, $_SESSION
    >
    > etc. etc.
    >
    > Can someone explain me why?
    >
    > Is there something I can tell my web host to set in the php.ini file to
    > fix this?
    >
    > All of this has always worked for me on Unix.
    >[/color]

    It's probably because you're using IIS, not Apache. This can't be fixed
    in the php.ini file. This information is supplied by Apache.

    Solution? Get an Apache server.

    --
    =============== ===
    Remove the "x" from my email address
    Jerry Stuckle
    JDS Computer Training Corp.
    jstucklex@attgl obal.net
    =============== ===

    Comment

    • charles_weaver@post.harvard.edu

      #3
      Re: PHP on Windows missing features

      So you are saying that there are no session variables in Windows IIS
      PHP and I have to handle all this in hidden variables or something like
      that? Too bad. Fortunately my ultimate target is a Linux server and I
      guess I will just have to do my development there. Live and learn.

      Comment

      • Jerry Stuckle

        #4
        Re: PHP on Windows missing features

        charles_weaver@ post.harvard.ed u wrote:[color=blue]
        > So you are saying that there are no session variables in Windows IIS
        > PHP and I have to handle all this in hidden variables or something like
        > that? Too bad. Fortunately my ultimate target is a Linux server and I
        > guess I will just have to do my development there. Live and learn.
        >[/color]

        Yes, there are session variables on Windows servers. But you don't have
        the same $_SERVER variables Apache does. And even to get those, you
        *may* have to have the ISAPI version installed instead of the CGI version.

        But if you're going to be running on Linux anyway, why not just load
        Apache on Windows and use it? It makes things *much* easier.


        --
        =============== ===
        Remove the "x" from my email address
        Jerry Stuckle
        JDS Computer Training Corp.
        jstucklex@attgl obal.net
        =============== ===

        Comment

        • Kimmo Laine

          #5
          Re: PHP on Windows missing features

          "Jerry Stuckle" <jstucklex@attg lobal.net> wrote in message
          news:C76dnYI4os BUwDbe4p2dnA@co mcast.com...[color=blue]
          > charles_weaver@ post.harvard.ed u wrote:[color=green]
          >> I have a PHP program on a Windows Server website and the following do
          >> not work:
          >>
          >> $HTTP_SERVER_VA RS["PHP_SELF"], $_SERVER, $_SESSION
          >>
          >> etc. etc.
          >>
          >> Can someone explain me why?
          >>
          >> Is there something I can tell my web host to set in the php.ini file to
          >> fix this?
          >>
          >> All of this has always worked for me on Unix.
          >>[/color]
          >
          > It's probably because you're using IIS, not Apache. This can't be fixed
          > in the php.ini file. This information is supplied by Apache.
          >[/color]

          Bullshit! I work with PHP + IIS server. $_SESSION, $_SERVER and so on, are
          all available in php programs. The primary solution is to check the
          configuration of the server, and fix that first, and if that fails, then get
          the apache. But saying using apache is the only solution is just horse shit.


          --
          "En ole paha ihminen, mutta omenat ovat elinkeinoni." -Perttu Sirviö
          antaatulla.sika nautaa@gmail.co m.NOSPAM.invalid


          Comment

          • Erwin Moller

            #6
            Re: PHP on Windows missing features

            Kimmo Laine wrote:
            [color=blue]
            > "Jerry Stuckle" <jstucklex@attg lobal.net> wrote in message
            > news:C76dnYI4os BUwDbe4p2dnA@co mcast.com...[color=green]
            >> charles_weaver@ post.harvard.ed u wrote:[color=darkred]
            >>> I have a PHP program on a Windows Server website and the following do
            >>> not work:
            >>>
            >>> $HTTP_SERVER_VA RS["PHP_SELF"], $_SERVER, $_SESSION
            >>>
            >>> etc. etc.
            >>>
            >>> Can someone explain me why?
            >>>
            >>> Is there something I can tell my web host to set in the php.ini file to
            >>> fix this?
            >>>
            >>> All of this has always worked for me on Unix.
            >>>[/color]
            >>
            >> It's probably because you're using IIS, not Apache. This can't be fixed
            >> in the php.ini file. This information is supplied by Apache.
            >>[/color]
            >
            > Bullshit! I work with PHP + IIS server. $_SESSION, $_SERVER and so on, are
            > all available in php programs. The primary solution is to check the
            > configuration of the server, and fix that first, and if that fails, then
            > get the apache. But saying using apache is the only solution is just horse
            > shit.
            >[/color]

            True, I have them all under IIS5/PHP-ISAPI on my W2000 machine.
            Maybe not all (didn't check them all), but all I need.
            I prefer Debian/apache, but hey, life is a bitch, and so am I when I can
            make a dime. ;-)

            Regards,
            Erwin Moller

            Comment

            • Jerry Stuckle

              #7
              Re: PHP on Windows missing features

              Kimmo Laine wrote:[color=blue]
              > "Jerry Stuckle" <jstucklex@attg lobal.net> wrote in message
              > news:C76dnYI4os BUwDbe4p2dnA@co mcast.com...
              >[color=green]
              >>charles_weave r@post.harvard. edu wrote:
              >>[color=darkred]
              >>>I have a PHP program on a Windows Server website and the following do
              >>>not work:
              >>>
              >>>$HTTP_SERVER _VARS["PHP_SELF"], $_SERVER, $_SESSION
              >>>
              >>>etc. etc.
              >>>
              >>>Can someone explain me why?
              >>>
              >>>Is there something I can tell my web host to set in the php.ini file to
              >>>fix this?
              >>>
              >>>All of this has always worked for me on Unix.
              >>>[/color]
              >>
              >>It's probably because you're using IIS, not Apache. This can't be fixed
              >>in the php.ini file. This information is supplied by Apache.
              >>[/color]
              >
              >
              > Bullshit! I work with PHP + IIS server. $_SESSION, $_SERVER and so on, are
              > all available in php programs. The primary solution is to check the
              > configuration of the server, and fix that first, and if that fails, then get
              > the apache. But saying using apache is the only solution is just horse shit.
              >
              >[/color]

              I do, too. And no, not everything is available in IIS as it is in Apache.

              Additionally, if you have PHP loaded as a CGI, even less is available.

              And learn to read. I didn't say to get Apache because it's the only
              solution - I said to get it because it's the MOST COMPATIBLE SOLUTION.
              His final target is Linux. It only makes sense to develop using the
              same server as you're going to be deploying on.

              So get off your Microsoft High Horse and learn to read.

              --
              =============== ===
              Remove the "x" from my email address
              Jerry Stuckle
              JDS Computer Training Corp.
              jstucklex@attgl obal.net
              =============== ===

              Comment

              • charles_weaver@post.harvard.edu

                #8
                Re: PHP on Windows missing features

                I don't have any control over this server. I am sure it is an IIS
                server. Can someone tell me what to tell my web host to do and what
                special I have to do in my program in order to enable $_SESSION
                variables if that is possible?

                Comment

                • Sean

                  #9
                  Re: PHP on Windows missing features

                  To get access to lots of info, including server info check out:
                  Outputs information about PHP's configuration


                  To learn about sessions goto:
                  http://ie2.php.net/manual/en/ref.session.php. Basically you need to put
                  in session_start.

                  All in the manual.

                  Comment

                  Working...