PHP Uploader

Hi Guys

I downloaded a little program called User Cakes to handle my logins on my website, I need help with making a “user” page that is unique to that user only.

The plan I have is:

I use sage accounts to create a PDF estimate / Invoice. I want to be able to upload that file to my own server for the customer to log in and view it?

I have no idea what to do. I have asked for support from User Cakes but they don’t reply to these requests

Are both programs on the same machine? If so you can just save it to a directories with the user ID that has webaccess and then check to user ID against the directory name and then allow that user to see it.

If it’s on a different machine, you’ll need to FTP the files over with filezilla, cuteftp or something

Is the PDF file unique to that one user? If so, save it with their username in the name of the PDF.

So, the invoice08-18-2014.pdf would become erniealex-invoice08-18-2014 or something like that.
Then, when they log in, display a list of all of the invoices that start with their username which they
can select to view/print.

If it is not unique to them, you would have to keep a list of the ones they are allowed to view and show that list to them so they can select them.

To upload a file to a server is easy to do with PHP on a website. But, you need some way to only show them to the correct user’s. So, as Topcoder mentioned, store them into different folders with the usernames or user-id’s for the folder name, or encode the name itself to show the user that can view it.

If you figure this out let us know. If not, give us more information on what you need to do. We can help!

Sponsor our Newsletter | Privacy Policy | Terms of Service