Forum Moderators: phranque

Message Too Old, No Replies

Uploading files

         

semya

10:42 am on Dec 6, 2002 (gmt 0)

10+ Year Member



a server has FreeBSD installed as its main OS, when i upload jpeg-files to it using standard PHP procedures like move_uploaded_file() they are marked with * on a server like executables and i can't see these pictures in <img> tag since they are marked with -1 byte size... what can it be? thanks!

Nick_W

10:47 am on Dec 6, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not sure what's causing it but you can use chmod() to alter the permissions which would probably do the trick....

Nick

semya

10:58 am on Dec 6, 2002 (gmt 0)

10+ Year Member



thanks really, it might be a problem... but which permissions should i use then? apache and php starts with nobody permissions...

Nick_W

11:09 am on Dec 6, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



you just need to set permission at 664 i beleive rw-rw-r

Nick

semya

12:27 pm on Dec 6, 2002 (gmt 0)

10+ Year Member



thanx! I'll try