problem beim uploaden

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • problem beim uploaden

    Ich hab ein kleines Problem mit meinem Upload Script

    PHP Code:
    $source $_FILES['fupload']['tmp_name'];
    $target "upfile/".$_FILES['fupload']['name']."";
    move_uploaded_file($source$target); 
    der ordner "upfile" hat volle schreibrechte (CHMOD 777), aber ich bekomm jedes mal nen error.

    Warning: move_uploaded_file(upfile/ld_off.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in httpdocs/upload/add_upload.php on line 18

    Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpP9uYnO' to 'upfile/ld_off.jpg' in /httpdocs/upload/add_upload.php on line 18

    Woran liegt das?

  • #2
    Und wie steht upfile zum ausführenden Script ? Ist es ein Unterverzeichnis von upload ?
    Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

    [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
    Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

    Comment


    • #3
      Ja ist es...

      Comment


      • #4
        Hast du es auch mal mit einer kompletten Pfadangabe (ab htdocs) versucht ?
        Also irgendwas wie
        PHP Code:
        $target $_SERVER['DOCUMENT_ROOT']."/pfad/zum/uploadVerzeichnis"
        Gruss

        tobi
        Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

        [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
        Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

        Comment


        • #5
          ne hab ich noch net gemacht werds aber gleich ma ausprobieren, danke

          /EDIT:
          Ne, geht auch net, zeigt mir wieder den selben fehler.
          Last edited by lightdisc; 21-09-2006, 14:33.

          Comment


          • #6
            Kannst du die Fehlermeldung wie sie jetzt auftritt wieder posten ? Normalerweise funzen Sachen auf dem Dateisystem mit kompletten Pfaden zuverlässiger...

            Gruss

            tobi
            Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

            [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
            Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

            Comment


            • #7
              @lightdisc: die Fehlermeldung ist doch eindeutig. Bist du sicher, dass der Pfad korrekt ist? Und selbst wenn, dann überprüf es nochmal. Er ist es nämlich nicht!

              Comment


              • #8
                Er ist zu 100% korrekt und hat auch zu 100% schreibrechte

                Comment


                • #9
                  Fehlermeldung wie sie jetzt auftritt (im Wortlaut) bitte

                  Gruss

                  tobi
                  Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

                  [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
                  Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

                  Comment


                  • #10
                    soo hier:

                    Warning: move_uploaded_file(httpdocs/upload/upfile/blub.txt) [function.move-uploaded-file]: failed to open stream: No such file or directory in /httpdocs/upload/add_upload.php on line 18

                    Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpfOHKn5' to '/httpdocs/upload/upfile/blub.txt' in /httpdocs/upload/add_upload.php on line 18
                    Last edited by lightdisc; 21-09-2006, 19:32.

                    Comment


                    • #11
                      der pfad ist immer noch nicht korrekt.

                      Comment


                      • #12
                        Des musste mir jetzt aber ma erklären

                        Comment


                        • #13
                          wenn php den pfad nicht findet, dann ist er nicht richtig.
                          oder fällt dir ein grund ein, warum php lügen sollte?

                          Comment


                          • #14
                            ja is mir schon klar das php net lügt, aber woher soll ich denn wissen welches der richtige is, wenn ich nur einen hab? mit http://... gehts wohl auch net.

                            Comment


                            • #15
                              zeig mal deinen aktuellen code.

                              Comment

                              Working...
                              X