Menu

tmpdir

Aswin
2004-08-27
2013-03-27
  • Aswin

    Aswin - 2004-08-27

    On my webserver I don't have access to the
    /tmp dir where this cgi scripts uploads his files
    i do have acces to
    /home/aswin/temp

    How do I change the tmpdir?
    If I change it in the header, I only find these 3 files
    but my uploaded file,
    $post_data_file = "$tmp_dir/$sessionid"."_postdata";
    $monitor_file = "$tmp_dir/$sessionid"."_flength";
    $signal_file = "$tmp_dir/$sessionid"."_signal";

    but my tmp file (tmp_name[name][0])
    is still
    /tmp/ULPrM0ky9
    In php I can't rename / copy / move / access the file.
    And I don't understand perl..
    Can someone help me to change the tempdir /tmp into
    /home/aswin/temp ?
    thx a lot.

     
    • raditha dissanayake

      set the folder in header.cgi

       
      • Jony

        Jony - 2005-01-26

        You also have to set it in upload2.php :) just search for /tmp/ in that file and replace with /path/to/tmp

        :)

         
    • the real duch

      the real duch - 2004-12-07

      setting the folder in header.cgi does not change the place where the file is created at last.

      I guess you should know that...

      i'm still looking for a solution (cf. my reply to aswin in the help forum)

       

Log in to post a comment.