Welcome to WebmasterWorld Guest from 54.226.25.231

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

image upload script via ftp or 'traditional'

am looking for best way

     

StickeR

3:28 am on Apr 1, 2007 (gmt 0)

10+ Year Member



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

5:41 am on Apr 1, 2007 (gmt 0)

10+ Year Member



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

4:05 pm on Apr 1, 2007 (gmt 0)

10+ Year Member



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

6:24 pm on Apr 1, 2007 (gmt 0)

10+ Year Member



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]

 

Featured Threads

Hot Threads This Week

Hot Threads This Month