Re: PHP MySQL und IIS6

From: Karsten Samaschke [MVP] (msnews_at_ksamaschke.de)
Date: 01/18/05

  • Next message: Gernot Benz: "Re: PHP MySQL und IIS6"
    Date: Tue, 18 Jan 2005 01:43:35 +0100
    
    

    Gernot Benz schrieb:

    > Undefined variable: bereich in E:\LocalUser\u406xxxx\v02\start\index.php on
    > line 121

    Das bedeutet, dass die Variable "bereich" nicht definiert worden ist und
    PHP eine entsprechende Fehlermeldung wirft. Eindeutig ein Fehler des
    Entwicklers.

    > Die Fehlermeldungen ziehen sich über alle Sites.

    Naja, wahrscheinlich in einem Menü verwendet?

    > Der kundenseitige Entwickler dieser Site meint, wir sollen Apache einsetzen;
    > dann würde die Website laufen. Bei seinem Webserver würde diese Site
    > einwandfrei funktionieren.

    Jaaaha, das liebe ich. Von Tuten und Blasen keine Ahnung haben, aber
    sagen, dass es am IIS liegen würde. Nein, die Analyse ist ganz einfach:
    PHP ist so konfiguriert, dass die Deklaration von Variablen vor deren
    Verwendung erwartet wird. Dies ist ein nicht ganz unwichtiges Feature,
    denn so wird verhindert, dass Variablen verwendet werden, die einen
    nicht definierten Wert haben. Ein guter Entwickler weiss dies.

    Gib ihm folgende Tipps:

        - error_reporting = E_ALL sollte auf error_reporting = E_ALL &
    ~E_NOTICE geändert werden

        - Auf übergebene Variablen wird per $_REQUEST["<Name>"] oder
    $_POST["<Name>"] oder $_GET["<Name>"] zugegriffen

        - Generell ist es gute Coding-Practice, Variablen vor deren
    Verwendung zu deklarieren

    > Hat jemand eine Ahnung, was sich dahinter verbirgt?

    Die Unwissenheit des Entwicklers...?

    -- 
    Karsten Samaschke
    IT-Consulting, IT-Development, IT-Training
    4x MS MVP ASP / ASP.NET, Germany
    http://www.karsten-samaschke.de
    - - - - - - - - - - - - - - - - - - - - - - - - - -
    German ASP / ASP.NET-Portal: http://www.aspextra.de
    ASP / ASP.NET Codebooks: http://books.ksamaschke.de
    

  • Next message: Gernot Benz: "Re: PHP MySQL und IIS6"

    Relevant Pages

    • Re: site characteristics
      ... Only for files served from the webserver ends with asp don't have to mean it's using any for of asp, it would take me lass than a minute to tell my web server to parse .asp files with php, to the outside world it would look like I would use asp but it's php. ...
      (alt.html)
    • Re: What is the difference between php & asp?
      ... >ASP is a Microsoft product based on the very ackward Visual Basic syntax ... >PHP is a C-Like, ... >need to physically register on the server. ... It works fine with SQL Server and Access if you really really ...
      (alt.php)
    • Re: IIS, ASP & PHP - is it possible?
      ... IIS is perfectly able to run both ASP and PHP on the same server at the ...
      (microsoft.public.inetserver.iis)
    • Re: Advice for an asp developer
      ... productivity and maintenance to slide to the negative side of ASP. ... Lastly as proof that Microsoft actually 'supporting' PHP is the ... My perspective is that PHP and ASP.NET are not competing/replacement ...
      (comp.lang.php)
    • Re: PHP tag coloring
      ... > have to processed twice (once by the ASP engine and then the PHP engine) ... > server-side scripting technology. ... > Even with ASP and ASP.net it is not a good idea to mix the two, ... > FrontPage Resources, WebCircle, MS KB Quick Links, etc. ...
      (microsoft.public.frontpage.client)