Koozali.org: home of the SME Server

Bit offtopic .. help with .php/e-smith

ADG

Bit offtopic .. help with .php/e-smith
« on: December 23, 2004, 10:33:27 AM »
Hi there,

I'm getting an error in my code whilst trying to upload that says:

Problem: Could not move file into directory, please go back and try again.


Anyone know the fix to this?

Also, can anyone tell me the chmod command to get the directory permissions back as they should be?  (can I post them here?   I tried chmod 777 to see if that would fix the directory I needed, but it didn't so I need to change it back...

Help please?

:)

ADG

Bit offtopic .. help with .php/e-smith
« Reply #1 on: December 23, 2004, 11:04:30 AM »
Actually, i've fixed that .. (phew)...

Now can you change the number after the directory permissions?

drwxrwxrwx 10   <--- that number.

Anonymous

Bit offtopic .. help with .php/e-smith
« Reply #2 on: December 23, 2004, 08:11:05 PM »
Quote from: "ADG"
Actually, i've fixed that .. (phew)...


So, how did you fix it?  Share the joy :-D

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Bit offtopic .. help with .php/e-smith
« Reply #3 on: December 23, 2004, 08:17:56 PM »
Quote from: "ADG"
Actually, i've fixed that .. (phew)...

Now can you change the number after the directory permissions?

drwxrwxrwx 10   <--- that number.


Those are very insecure permissions for a directory. Never use 0777 permission unless you know exactly what you are doing, and why.

ADG

Bit offtopic .. help with .php/e-smith
« Reply #4 on: December 23, 2004, 08:46:22 PM »
They're not actually the permissions, I just wrote that as an example.

But the fact is that the directory permissions are exactly the same as in another ibay (as automatically set by e-smith) yet my upload command only works on one site even though they are exactly the same ???