| image upload script via ftp or 'traditional' am looking for best way |
StickeR

msg:3298791 | 3:28 am on Apr 1, 2007 (gmt 0) | Here goes: In the past I've made upload scripts, where I've used the 'traditional' move_uploaded_file command which included CHMOdding stuff. But recently (for bigger files) I've managed to write a php ftp script (which i personally liked better) My current assignment requires an image upload script (reasonably small files, under 100Kb), but I'm not sure which is the best way to upload those. I keep reading about chmodding 777 being a security issue, but opening an ftp transfer for 1 single tiny file would seem overdone imo, also since ftp is not always as smooth going at our host, especially if several people would upload at the same time I assume... If anyone has any experience / information on the subject I would appreciate some advice. Many thanks in advance
|
brucec

msg:3298840 | 5:41 am on Apr 1, 2007 (gmt 0) | You could try Chmod settings of 470 or 677, which cut out access by anything but your script. The security settings are tighter than 777. Bruce
|
StickeR

msg:3299199 | 4:05 pm on Apr 1, 2007 (gmt 0) | Many thanks :) 470 works like a charm, to be honoust I've never really understood the CHmod levels, I'll have a better look at that some time soon.
|
StickeR

msg:3299342 | 6:24 pm on Apr 1, 2007 (gmt 0) | Hmm, i spoke too soon, 470 sisnt show up the image on the site. 677 works ok though, on a sidenote I read some stuff on CHmod, but i still don't get it :( [edited by: StickeR at 6:25 pm (utc) on April 1, 2007]
|
|
|