Help in PHP web application!!

Discussion in 'PHP' started by Kind Soul, Mar 15, 2013.

  1. #1
    We are going to develop a web application using MySQL & PHP having following features:
    - authors will upload their articles as .doc file and that can only be accessed by them & administrator.
    - Initially articles will be marked as private and after processing it will be available for public access.

    However, we are facing problem in implementing these features:

    1) How to control public access in php coding when the files are private? so that visitors not able to access private files by changing url.

    2) How to control visitors access to file download so that they must login before download any file?

    3) We want a url handler that will process all urls before displaying pages & to control which css template to use. Can you provide a sample url handler in php?

    4) What is the best backup strategy for this web application?

    Looking forward your reply. Thank you.
     
    Kind Soul, Mar 15, 2013 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    1; store the file somewhere and do not directly link to the file instead use scripting
    2; same as 1 but then validate that users are logged in by using sessions
    3; don't get what you need with a url handler, mostly we use htaccess and php to handle url's
    4; ask your hoster to do daily backups
     
    EricBruggema, Mar 16, 2013 IP
  3. Kind Soul

    Kind Soul Greenhorn

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #3
    Please reply..
     
    Kind Soul, Mar 16, 2013 IP
  4. malky66

    malky66 Acclaimed Member

    Messages:
    3,997
    Likes Received:
    2,248
    Best Answers:
    88
    Trophy Points:
    515
    #4
    So basically you want someone to actually write the app for free for you..??, that ain't gonna happen.
    How far have you got with the code so far, if you show us what you have done we are more likely to help you out.
    If you have no code so far i suggest you cosy up to google search and find yourself some tutorials...there's plenty out there....
     
    malky66, Mar 16, 2013 IP
    ryan_uk likes this.
  5. ryan_uk

    ryan_uk Illustrious Member

    Messages:
    3,983
    Likes Received:
    1,022
    Best Answers:
    33
    Trophy Points:
    465
    #5
    Learn how to search and you'll be amazed what you can learn!

    As a hint to get you started:
    php how to do blah blah blah
    Code (markup):
    Get a book on programming principles, too.

    Although, to be honest, as you made this post and are in need of such detail for free, you should consider a CMS instead. It would be a lot less challenging for you. Still, at least learn how to search.
     
    ryan_uk, Mar 16, 2013 IP
  6. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #6
    This sounds more as a script request?! if so, you may hire me... if not, maby a idea to start learning PHP?
     
    EricBruggema, Mar 16, 2013 IP
  7. jdr8271

    jdr8271 Member

    Messages:
    209
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #7
    store the files in your database and then echo them out to display them. Check the login credentials of the user before echoing the file out.
     
    jdr8271, Mar 18, 2013 IP