Finde Fehler nicht

  • Moin moin.


    Und was soll nicht funktionieren?
    bitte mehr infomation


    evt error log mit posten.


    Danke


    lg


    Edit:


    defined('_VALID_USER') or die(header("Location: www.".$_SERVER['SERVER_NAME']."/index.php"));


    das kommt mir komisch vor.


    Du willst Location holen aus dem internet? Location macht man doch rein local soweit ich weiß

  • defined('_VALID_USER') or die(header("Location: www.".$_SERVER['SERVER_NAME']."/index.php"));

    ist ein Sicherheitsformular das macht nur das die seite NUR über die index.php aufgeht sonst geht nix XD desweiteren geht row nicht :( warum auch immer. und die url muss so ausehen sonst geht es net index.php?id=video&vid=mac_and_devin_go_to_highschool

  • [Sun Jun 18 00:05:31.055188 2017] [:error] [pid 9064:tid 1812] [client ::1:65475] PHP Warning: Invalid argument supplied for foreach() in C:\\xamp\\htdocs\\streamvideo.tk\\app\\site\\video.php on line 9
    [Sun Jun 18 00:05:31.055188 2017] [:error] [pid 9064:tid 1812] [client ::1:65475] PHP Notice: Undefined variable: row in C:\\xamp\\htdocs\\streamvideo.tk\\app\\site\\video.php on line 21
    [Sun Jun 18 00:06:04.510070 2017] [:error] [pid 9064:tid 1812] [client ::1:65495] PHP Warning: Invalid argument supplied for foreach() in C:\\xamp\\htdocs\\streamvideo.tk\\app\\site\\video.php on line 9
    [Sun Jun 18 00:06:42.238875 2017] [:error] [pid 9064:tid 1820] [client ::1:65517] PHP Warning: Invalid argument supplied for foreach() in C:\\xamp\\htdocs\\streamvideo.tk\\app\\site\\video.php on line 9
    [Sun Jun 18 00:06:42.238875 2017] [:error] [pid 9064:tid 1820] [client ::1:65517] PHP Notice: Undefined variable: profilbild in C:\\xamp\\htdocs\\streamvideo.tk\\app\\site\\video.php on line 38
    [Sun Jun 18 00:06:42.470856 2017] [core:error] [pid 9064:tid 1836] (20024)The given path is misformatted or contained invalid characters: [client ::1:65519] AH00127: Cannot map GET /streamvideo.tk/app/user/pb/%3Cbr%20/%3E%3Cb%3ENotice%3C/b%3E:%20%20Undefined%20variable:%20profilbild%20in%20%3Cb%3EC:/xamp/htdocs/streamvideo.tk/app/site/video.php%3C/b%3E%20on%20line%20%3Cb%3E38%3C/b%3E%3Cbr%20/%3E HTTP/1.1 to file, referer: index.php?id=video&vid=mac_and_devin_go_to_highschool
    [Sun Jun 18 00:07:52.634466 2017] [:error] [pid 9064:tid 1812] [client ::1:49166] PHP Warning: Invalid argument supplied for foreach() in C:\\xamp\\htdocs\\streamvideo.tk\\app\\site\\video.php on line 9
    [Sun Jun 18 00:07:52.634466 2017] [:error] [pid 9064:tid 1812] [client ::1:49166] PHP Notice: Undefined variable: profilbild in C:\\xamp\\htdocs\\streamvideo.tk\\app\\site\\video.php on line 20
    [Sun Jun 18 00:07:52.634466 2017] [:error] [pid 9064:tid 1812] [client ::1:49166] PHP Notice: Undefined variable: profilbild in C:\\xamp\\htdocs\\streamvideo.tk\\app\\site\\video.php on line 38
    [Sun Jun 18 00:07:52.789245 2017] [core:error] [pid 9064:tid 1828] (20024)The given path is misformatted or contained invalid characters: [client ::1:49168] AH00127: Cannot map GET /streamvideo.tk/app/user/pb/%3Cbr%20/%3E%3Cb%3ENotice%3C/b%3E:%20%20Undefined%20variable:%20profilbild%20in%20%3Cb%3EC:/xamp/htdocs/streamvideo.tk/app/site/video.php%3C/b%3E%20on%20line%20%3Cb%3E38%3C/b%3E%3Cbr%20/%3E HTTP/1.1 to file, referer: index.php?id=video&vid=mac_and_devin_go_to_highschool
    [Sun Jun 18 00:11:57.098519 2017] [:error] [pid 9064:tid 1820] [client ::1:49397] PHP Notice: Undefined variable: profilbild in C:\\xamp\\htdocs\\streamvideo.tk\\app\\site\\video.php on line 14
    [Sun Jun 18 00:16:07.789076 2017] [:error] [pid 9064:tid 1836] [client ::1:49561] PHP Parse error: syntax error, unexpected '?>' in C:\\xamp\\htdocs\\streamvideo.tk\\app\\site\\video.php on line 31
    [Sun Jun 18 01:07:42.728570 2017] [:error] [pid 9064:tid 1820] [client ::1:51469] PHP Warning: Illegal string offset 'profilbild' in C:\\xamp\\htdocs\\streamvideo.tk\\app\\site\\video.php on line 14
    [Sun Jun 18 01:07:42.729070 2017] [:error] [pid 9064:tid 1820] [client ::1:51469] PHP Warning: Illegal string offset 'profilbild' in C:\\xamp\\htdocs\\streamvideo.tk\\app\\site\\video.php on line 32
    [Sun Jun 18 01:07:42.964210 2017] [core:error] [pid 9064:tid 1820] (20024)The given path is misformatted or contained invalid characters: [client ::1:51469] AH00127: Cannot map GET /streamvideo.tk/app/user/pb/%3Cbr%20/%3E%3Cb%3EWarning%3C/b%3E:%20%20Illegal%20string%20offset%20'profilbild'%20in%20%3Cb%3EC:/xamp/htdocs/streamvideo.tk/app/site/video.php%3C/b%3E%20on%20line%20%3Cb%3E32%3C/b%3E%3Cbr%20/%3ES HTTP/1.1 to file, referer: index.php?id=video&vid=mac_and_devin_go_to_highschool
    [Sun Jun 18 01:38:00.857499 2017] [:error] [pid 9064:tid 1836] [client ::1:52903] PHP Notice: Use of undefined constant \xc2\xa7username - assumed '\xc2\xa7username' in C:\\xamp\\htdocs\\streamvideo.tk\\app\\site\\user.php on line 4, referer: index.php?id=video&vid=mac_and_devin_go_to_highschool
    [Sun Jun 18 01:52:56.290327 2017] [:error] [pid 9064:tid 1820] [client ::1:53500] PHP Notice: Undefined index: id in C:\\xamp\\htdocs\\streamvideo.tk\\index.php on line 10, referer: index.php?id=
    [Sun Jun 18 01:52:59.510158 2017] [:error] [pid 9064:tid 1820] [client ::1:53500] PHP Notice: Undefined index: id in C:\\xamp\\htdocs\\streamvideo.tk\\index.php on line 10, referer: index.php
    [Sun Jun 18 01:54:24.966620 2017] [:error] [pid 9064:tid 1820] [client ::1:53551] PHP Notice: Undefined index: id in C:\\xamp\\htdocs\\streamvideo.tk\\index.php on line 10, referer: index.php
    [Sun Jun 18 01:55:17.963040 2017] [:error] [pid 9064:tid 1836] [client ::1:53581] PHP Notice: Undefined index: id in C:\\xamp\\htdocs\\streamvideo.tk\\index.php on line 10, referer: index.php
    [Sun Jun 18 01:56:29.409892 2017] [:error] [pid 9064:tid 1820] [client ::1:53613] PHP Notice: Undefined index: id in C:\\xamp\\htdocs\\streamvideo.tk\\index.php on line 10, referer: index.php
    [Sun Jun 18 01:56:33.078581 2017] [:error] [pid 9064:tid 1820] [client ::1:53613] PHP Notice: Undefined index: id in C:\\xamp\\htdocs\\streamvideo.tk\\index.php on line 10, referer: index.php
    [Sun Jun 18 01:58:12.311962 2017] [:error] [pid 9064:tid 1820] [client ::1:53662] PHP Notice: Undefined index: id in C:\\xamp\\htdocs\\streamvideo.tk\\index.php on line 10, referer: index.php

  • C:\\xamp\\htdocs\\streamvideo.tk\\index.php on line 10, referer: index.php


    deiner index datei in der leine 10 ist irgend was nicht defeniert PHP Notice: Undefined index: id


    so wie das sehe. Aber evt weiß da einer mehr bescheid als ich :D



    PHP
    1. [Sun Jun 18 00:11:57.098519 2017] [:error] [pid 9064:tid 1820] [client ::1:49397] PHP Notice: Undefined variable: profilbild in C:\\xamp\\htdocs\\streamvideo.tk\\app\\site\\video.php on line 14
    2. [Sun Jun 18 00:16:07.789076 2017] [:error] [pid 9064:tid 1836] [client ::1:49561] PHP Parse error: syntax error, unexpected '?>' in C:\\xamp\\htdocs\\streamvideo.tk\\app\\site\\video.php on line 31
    3. [Sun Jun 18 01:07:42.728570 2017] [:error] [pid 9064:tid 1820] [client ::1:51469] PHP Warning: Illegal string offset 'profilbild' in C:\\xamp\\htdocs\\streamvideo.tk\\app\\site\\video.php on line 14
    4. [Sun Jun 18 01:07:42.729070 2017] [:error] [pid 9064:tid 1820] [client ::1:51469] PHP Warning: Illegal string offset 'profilbild' in C:\\xamp\\htdocs\\streamvideo.tk\\app\\site\\video.php on line 32


    scheint aber auch mehr fehler zu haben in video.php

  • Ich habe den mal ein bisschen umgeschrieben so sollte er gehen, ich habe ihn nicht getestet!


    Die mysqli Methode ist genau so gut wie die pdo meines Erachtens nach.

    Ihr habt Fragen zu Technischen dingen, wie z.B. Entwicklungen von Webseite/Software/App's? Kein Problem Ihr könnt mich gerne jederzeit anschreiben und ich werde so gut es geht euch versuchen zu helfen bei eurem Projekt.