homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

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

 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



 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.



 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.


 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]

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved