BleepingComputer.com: Php Uploading

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Php Uploading

#1 User is offline   JUICYboy 

  • Senior Member
  • PipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 516
  • Joined: 26-January 10
  • Gender:Male
  • Location:Anaheim, Ca

Posted 14 May 2011 - 09:42 PM

Hello All

I have learned how to do php uploading.

As I learned from different tutorials online and @ W3 schools I see that we can upload to a folder on the server.

Is there anyway to send it to the e-mail instead of the upload folder? I tried the $to statement or the "mailto:xxx@yr.com"

And if it is uploaded to a folder on a server.. then that means that file can be seen by anyone that knows the proper extension....

Example: www.website.com/uploaded/my_private_file.doc

How can the files be restricted from anyone seen the content but the user and administrator only?

Thanks

This post has been edited by JUICYboy: 14 May 2011 - 09:58 PM


#2 User is offline   cryptodan 

  • Bleepin Madman
  • PipPipPipPipPipPip
  • Find Topics
  • Group: BC Advisor
  • Posts: 18,386
  • Joined: 08-September 08
  • Gender:Male
  • Location:Catonsville, Md

Posted 14 May 2011 - 10:06 PM

You will need a database that stores users and what they can see.

My work schedule is as follows: Mon and Tues 1800 to 0600, Friday - Sunday 1800EST to 0600, and Wednesday to Thursday 1800est to 0600. So if I do not respond right away I am at work.
----------------
If I am helping you, then Please Send Me a Message!with your thread link in it. This is only if I haven't replied back to you within 24 to 48 hours.
----------------
My Main Site || My Backup Site || steam://friends/add/cryptodan Add me to your Steam Friends.

#3 User is offline   Romeo29 

  • Learning To Bleep
  • PipPipPipPipPipPip
  • Find Topics
  • Group: BC Advisor
  • Posts: 2,834
  • Joined: 06-July 08
  • Gender:Not Telling
  • Location:127.0.0.1

Posted 14 May 2011 - 10:53 PM

Using .htaccess and .htpasswd.
http://weavervsworld.com/docs/other/passprotect.html

This works only for Apache server.

This post has been edited by Romeo29: 02 March 2012 - 11:23 PM


#4 User is offline   JUICYboy 

  • Senior Member
  • PipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 516
  • Joined: 26-January 10
  • Gender:Male
  • Location:Anaheim, Ca

Posted 15 May 2011 - 03:32 PM

Okay Thank-you For the information :thumbup2:

I guess I understood a little, is there any other tutorial that you recommend to read and work with to understand these principals?

Thank-you

#5 User is offline   JUICYboy 

  • Senior Member
  • PipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 516
  • Joined: 26-January 10
  • Gender:Male
  • Location:Anaheim, Ca

Posted 07 February 2012 - 11:59 PM

I was able to understand how to password protect folders that get information added to them.

I have created a simple upload form w/ attachment but how can I send it to my email w/ attached file? (I can only send it to a password protected folder on server)

Is there any good tutorials you recommend to accomplish this?

Thank-you :busy:

#6 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,605
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

Posted 08 February 2012 - 10:34 AM

How about you look for some tutorials for yourself, and then ask us questions if you can't get them to work? :thumbup2:
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users