400 Bad Request

  • Hallo!


    Ich hab eben gerade von Php 4.1 auf 4.3 upgedatet! Jetzt bekomm ich folgende Fehlermeldung wenn ich ein PHP Script aufmachen will:
    ----
    Bad Request
    Your browser sent a request that this server could not understand.


    Invalid URI in request GET /test.php HTTP/1.1


    Apache/1.3.20 Server at http://www.maxi.com Port 80
    ----


    Liegt das an PHP oder muss ich Apache dann auch updaten wenn ich einn neues PHP drauf mach?

    • Offizieller Beitrag

    hm gute frage, der script is ok?

    Mein System:

    Gigabyte BRIX GB-BRi7-8550, Intel Core i7-8550U, 16 GB DDR4-2666, Samsung SSD 970 PRO (512 GB), Windows 10 Pro 64 Bit, 2x Samsung SyncMaster 2494HM, Sharkoon PureWriter TKL, Roccat Kone AIMO

  • altes Problem is weg, dafür hab ich ein neues:
    Leider hab ich keine Datenbank zur verfügung, desshalb hab ich versucht ein GB, dass in ne .txt datei speichert zu schreiben...


    Lokal (bei mir auf Rechner) funktioniert dass. Wenn ich es auf meinem Webserver versuch kommt dieser Fehler:
    ---
    Warning: Supplied argument is not a valid File-Handle resource in /space/home/gap0892/testpage/guestbook/add.php on line 183


    Your Addition to the Guestbook could not be processed at this time. Please try again in a few minutes.
    ---


    Zeile 183 is folgende:
    @ $fp = fopen("list.txt", "a");


    flock($fp, 2); <------ 183

    if (!$fp)
    {
    echo "<p><strong> $error7. "
    ."$error8.</strong></p></body></html>";
    exit;
    }


    Liegt das am Server? Wenn nein, hat jemand ne Idee wie man das lösen kann?!