chmod im upload

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

  • #16
    chmod() gibt dir einen Fehler, weil die Datei in dem Verzeichnis noch gar nicht existiert. Du verschiebst diese ja erst nachher. Also erst verschieben und dann die Rechte setzen.

    Gruss

    tobi

    EDIT:

    Da war wiedermal einer schneller

    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


    • #17
      hm, also wenn ich das jetzt folgendermaßen mache,

      PHP Code:

      <?
      if ($_REQUEST['uploadDir']) {
          $uploadDir = $_REQUEST['uploadDir'];
          $uploadFile = $uploadDir . $_FILES['Filedata']['name'] 
          

          
          move_uploaded_file($_FILES['Filedata']['tmp_name'], $uploadFile);
      }

      chmod ("$uploadFile", 0755);


      if ($_REQUEST['action'] == 'getMaxFilesize') {
          echo "&maxFilesize=".ini_get('upload_max_filesize');
      }

      ?>

      dann stimmt angeblich hier was nicht :

      PHP Code:

      move_uploaded_file
      ($_FILES['Filedata']['tmp_name'], 

      Comment


      • #18
        Kannst du irgendwann auch mal ne vernüftige Fehler/Problembeschreibung liefern außer tuts nicht, tuts nicht und tuts auch nicht?

        Ich komme mal deiner Bitte mach und verschiebe dich nach *Pojekthilfe*

        Comment


        • #19
          hab ich doch gemacht ,
          immernoch der gleiche fehler

          Parse error: parse error in /home/www/web72/html/xtreme/up/uploadScript.php on line 8

          Comment


          • #20
            in der Zeile davor fehlt ein ;

            Comment


            • #21
              ok sagsch ja blöd :/

              danke

              Hier nochmal komplett für jemanden der auch noch nicht so viel plan hat !


              PHP Code:

              <?
              if ($_REQUEST['uploadDir']) {
                  $uploadDir = $_REQUEST['uploadDir'];
                  $uploadFile = $uploadDir . $_FILES['Filedata']['name'];
                  move_uploaded_file($_FILES['Filedata']['tmp_name'], $uploadFile);
              }

              chmod ("$uploadFile", 0755);
              if ($_REQUEST['action'] == 'getMaxFilesize') {
                  echo "&maxFilesize=".ini_get('upload_max_filesize');
              }

              ?>
              Last edited by stefens; 03-11-2006, 18:14.

              Comment


              • #22
                Ist das rein zufällig Zeile 8 ?
                PHP Code:
                $uploadFile $uploadDir $_FILES['Filedata']['name'
                wat fehlt denn hier ?

                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

                Working...
                X