Menu

#1 tmp and upload folders

open
nobody
5
2006-07-23
2006-07-23
Anonymous
No

I get the error message:

"Warning: PHP can't write to temp dir ().
Warning: PHP can't write to upload dir ()."

And it doesn't work. The cgi test worked. There is no mention of these
two folders anywhere in the readme. Manually creating them didn't work
:(

Discussion

  • SamCent

    SamCent - 2006-08-09

    Logged In: YES
    user_id=1572445

    More than likely read_settings can't find upload_settings. Check the path to
    the settings.

     
  • Paul_Sinclair_NZ

    Logged In: YES
    user_id=1630206

    Are you running this on windows? make two folders in C:\ called C:\tmp and C:\uploads then change two lines in the
    file upload_settings.inc so that it reads

    $tmp_dir="C:/tmp";
    $upload_dir="C:/upload";

     
  • Paul_Sinclair_NZ

    Logged In: YES
    user_id=1630206

    sorry disregard last comment!

     
  • Nobody/Anonymous

    Logged In: NO

    i have the same problem. is there a working demo of this?

     
  • Nobody/Anonymous

    Logged In: NO

    Hello,

    I've installed using the exact settings in the readme file. The tmp file is okay, but the uploads directory is not working correctly. the error message is:
    Warning: PHP can't write to upload dir (/tmp/uploads).

    The inc is fine. I tested this by setting a variable in the in the upload_settings.inc file, then calling it in the html/index.php file. it showed up fine. i'm stumped and haven't found much info online. Any advice would be much appreciated.

    Thanks,
    Celeste

     
  • Nobody/Anonymous

    Logged In: NO

    I too am having this problem, I however read to create the tmp and upload directory. They are both CHMOD'd to 777 too.

     
  • Nobody/Anonymous

    Logged In: NO

    I was having this problem. There was no directory specified between the parenthesis which was supposedly not writeable, and the script should have been putting it there. I finally figured out that upload_settings.php was using the shorthand tags for php (<? php code here; ?> rather than <?php php code here; ?>), so the whole script was failing, thus not reading the directory names out of upload_settings.inc. Changing all the opening php tags to <?php in that file fixed the problem. You could also turn on the shorthand in the php.ini on the server, but I didn't want to do this.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.