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.
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
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....
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.
This sounds more as a script request?! if so, you may hire me... if not, maby a idea to start learning PHP?
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.