File upload help

Thread Solved

Join Date: Feb 2008
Posts: 52
Reputation: Scottmandoo is an unknown quantity at this point 
Solved Threads: 0
Scottmandoo's Avatar
Scottmandoo Scottmandoo is offline Offline
Junior Poster in Training

Re: File upload help

 
0
  #11
Mar 26th, 2008
Nah im not going to process it, unless you can edit my script to check for, which i highly doubt, that should be it.

Also i've been doing some research and just wanted to ask you is there a way I can use ftp in my script to upload the file so that I won't have to change those settings or will this process still require for those setting to be changed?
Last edited by Scottmandoo; Mar 26th, 2008 at 5:13 am.
My Sites: SlickTunes and Loved By Design
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 100
Reputation: petr.pavel is an unknown quantity at this point 
Solved Threads: 14
petr.pavel's Avatar
petr.pavel petr.pavel is offline Offline
Junior Poster

Re: File upload help

 
1
  #12
Mar 26th, 2008
check for viruses:
  • your hosting must be allowed to execute files (which I seriously doubt)
  • you have to know where the antivirus program is and what parameters it expects
  • then use exec() to run it
ftp:
  • your script can use FTP if PHP has been compiled with FTP support - but that's likely
  • but it wouldn't solve your problem - you would need your users to use FTP instead of HTTP upload
To let your users upload files via FTP safely (safely for you, not for them), you need this:
  • set up a separate FTP user with access only to a specified directory (so that he cannot mess with your scripts)
  • this directory must not be allowed to run PHP scripts (best if it's outside httpdocs) otherwise someone will misuse it to run a spam-bot
Petr 'PePa' Pavel

The more information you give the more relevant answer you get.
Please consider using "Add to ... Reputation" and mark your thread as Solved if you found what you were looking for. By giving feedback you help others.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 52
Reputation: Scottmandoo is an unknown quantity at this point 
Solved Threads: 0
Scottmandoo's Avatar
Scottmandoo Scottmandoo is offline Offline
Junior Poster in Training

Re: File upload help

 
0
  #13
Mar 26th, 2008
Thanks a lot, I don't think I could ask anymore from you, though if theres anything I need help with i'll let you know, if thats fine with you, but until then I think this topic has been solved as all I can do now is just wait for my host to update the php.ini.

Thanks again,
Scottmandoo
Last edited by Scottmandoo; Mar 26th, 2008 at 5:29 am.
My Sites: SlickTunes and Loved By Design
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum


Views: 1739 | Replies: 12
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC