943,682 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Marked Solved
  • Views: 2271
  • PHP RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Mar 26th, 2008
0

Re: File upload help

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.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Scottmandoo is offline Offline
61 posts
since Feb 2008
Mar 26th, 2008
1

Re: File upload help

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
Reputation Points: 27
Solved Threads: 16
Junior Poster
petr.pavel is offline Offline
116 posts
since Mar 2008
Mar 26th, 2008
0

Re: File upload help

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.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Scottmandoo is offline Offline
61 posts
since Feb 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: print function.
Next Thread in PHP Forum Timeline: send data from while loop to mysql database





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC