Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Php Uploading


  • Please log in to reply
5 replies to this topic

#1 JUICYboy

JUICYboy

  • Members
  • 537 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Anaheim, Ca
  • Local time:07:30 AM

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

Edited by JUICYboy, 14 May 2011 - 09:58 PM.


BC AdBot (Login to Remove)

 


#2 cryptodan

cryptodan

    Bleepin Madman


  • Members
  • 21,868 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Catonsville, Md
  • Local time:11:30 AM

Posted 14 May 2011 - 10:06 PM

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

#3 Romeo29

Romeo29

    Learning To Bleep


  • Members
  • 3,194 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:127.0.0.1
  • Local time:06:30 AM

Posted 14 May 2011 - 10:53 PM

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

This works only for Apache server.

Edited by Romeo29, 02 March 2012 - 11:23 PM.


#4 JUICYboy

JUICYboy
  • Topic Starter

  • Members
  • 537 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Anaheim, Ca
  • Local time:07:30 AM

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 JUICYboy

JUICYboy
  • Topic Starter

  • Members
  • 537 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Anaheim, Ca
  • Local time:07:30 AM

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 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:05:30 AM

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:




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users